patch-2.4.22 linux-2.4.22/include/linux/mtd/mtd.h

Next file: linux-2.4.22/include/linux/ncp.h
Previous file: linux-2.4.22/include/linux/msdos_fs.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/include/linux/mtd/mtd.h linux-2.4.22/include/linux/mtd/mtd.h
@@ -287,10 +287,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 */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)