Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Nov 2012 07:48:44 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r243068 - stable/9/sys/dev/xen/netback
Message-ID:  <201211150748.qAF7miGp045795@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Thu Nov 15 07:48:44 2012
New Revision: 243068
URL: http://svnweb.freebsd.org/changeset/base/243068

Log:
  MFC r242889 (by rdivacky):
  
    Change the XNB_ASSERT from a statement expression to do-while(0) as its
    result is never used.
  
  MFC r242934:
  
    Redo r242889, now using the method from projects/amd64_xen_pv r240747.
  
    Reminded by:	kib

Modified:
  stable/9/sys/dev/xen/netback/netback_unit_tests.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/xen/netback/netback_unit_tests.c
==============================================================================
--- stable/9/sys/dev/xen/netback/netback_unit_tests.c	Thu Nov 15 07:36:38 2012	(r243067)
+++ stable/9/sys/dev/xen/netback/netback_unit_tests.c	Thu Nov 15 07:48:44 2012	(r243068)
@@ -58,8 +58,8 @@ __FBSDID("$FreeBSD$");
 #define	TOSTRING(x) STRINGIFY(x)
 
 /**
- * Writes an error message to buffer if cond is false, and returns true
- * iff the assertion failed.  Note the implied parameters buffer and
+ * Writes an error message to buffer if cond is false
+ * Note the implied parameters buffer and
  * buflen
  */
 #define	XNB_ASSERT(cond) ({						\
@@ -71,7 +71,7 @@ __FBSDID("$FreeBSD$");
 		strlcat(_buffer, ":" TOSTRING(__LINE__) 		\
 		  " Assertion Error: " #cond "\n", _buflen);		\
 	}								\
- ! passed; })
+	})
 
 
 /**



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211150748.qAF7miGp045795>