speedtch usb_atm.c,1.6,1.7
David Woodhouse
dwmw2 at infradead.org
Wed Oct 6 22:02:41 EDT 2004
Update of /home/cvs/speedtch
In directory phoenix.infradead.org:/tmp/cvs-serv7856
Modified Files:
usb_atm.c
Log Message:
Fix debugging assertions to actually be conditional
Index: usb_atm.c
===================================================================
RCS file: /home/cvs/speedtch/usb_atm.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- usb_atm.c 6 Oct 2004 12:22:48 -0000 1.6
+++ usb_atm.c 7 Oct 2004 02:02:38 -0000 1.7
@@ -97,7 +97,7 @@
#ifdef DEBUG
#define UDSL_ASSERT(x) BUG_ON(!(x))
#else
-#define UDSL_ASSERT(x) warn("failed assertion '" #x "' at line %d", __LINE__)
+#define UDSL_ASSERT(x) do { if (x) warn("failed assertion '" #x "' at line %d", __LINE__); } while(0)
#endif
#ifdef VERBOSE_DEBUG
More information about the Usbatm-commits
mailing list