speedtch usbatm.h,1.15,1.16
Duncan Sands
duncan at infradead.org
Tue May 3 10:18:08 EDT 2005
Update of /home/cvs/speedtch
In directory phoenix.infradead.org:/tmp/cvs-serv1066
Modified Files:
usbatm.h
Log Message:
Don't interpret the failed condition as part of the format string.
Index: usbatm.h
===================================================================
RCS file: /home/cvs/speedtch/usbatm.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- usbatm.h 3 May 2005 08:06:43 -0000 1.15
+++ usbatm.h 3 May 2005 14:18:05 -0000 1.16
@@ -42,12 +42,13 @@
#include <linux/device.h>
#include <linux/kref.h>
#include <linux/list.h>
+#include <linux/stringify.h>
#include <linux/usb.h>
#ifdef DEBUG
#define UDSL_ASSERT(x) BUG_ON(!(x))
#else
-#define UDSL_ASSERT(x) do { if (!(x)) warn("failed assertion '" #x "' at line %d", __LINE__); } while(0)
+#define UDSL_ASSERT(x) do { if (!(x)) warn("failed assertion '%s' at line %d", __stringify(x), __LINE__); } while(0)
#endif
#define usb_err(instance, format, arg...) \
More information about the Usbatm-commits
mailing list