mtd/include/linux/mtd mtd.h,1.41,1.42
David Woodhouse
dwmw2 at infradead.org
Thu Feb 27 11:04:00 EST 2003
Update of /home/cvs/mtd/include/linux/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv6957/mtd
Modified Files:
mtd.h
Log Message:
fix debug macro for safety, from Jörn Engel
Index: mtd.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/mtd.h,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- mtd.h 19 Feb 2003 11:47:31 -0000 1.41
+++ mtd.h 27 Feb 2003 16:03:58 -0000 1.42
@@ -295,10 +295,11 @@
#define MTD_DEBUG_LEVEL3 (3) /* Noisy */
#ifdef CONFIG_MTD_DEBUG
-#define DEBUG(n, args...) \
- if (n <= CONFIG_MTD_DEBUG_VERBOSE) { \
- printk(KERN_INFO args); \
- }
+#define DEBUG(n, args...) \
+ do { \
+ if (n <= CONFIG_MTD_DEBUG_VERBOSE) \
+ printk(KERN_INFO args); \
+ } while(0)
#else /* CONFIG_MTD_DEBUG */
#define DEBUG(n, args...)
#endif /* CONFIG_MTD_DEBUG */
More information about the linux-mtd-cvs
mailing list