svn commit: r243068 - stable/9/sys/dev/xen/netback
Dimitry Andric
dim at FreeBSD.org
Thu Nov 15 07:48:44 UTC 2012
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; })
+ })
/**
More information about the svn-src-stable-9
mailing list