patch-2.1.103 linux/include/linux/arcdevice.h

Next file: linux/include/linux/pci.h
Previous file: linux/include/asm-mips/mipsregs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.102/linux/include/linux/arcdevice.h linux/include/linux/arcdevice.h
@@ -114,10 +114,11 @@
 /* macros to simplify debug checking */
 #define BUGLVL(x) if ((ARCNET_DEBUG_MAX)&arcnet_debug&(x))
 #define BUGMSG2(x,msg,args...) BUGLVL(x) printk(msg, ## args)
-#define BUGMSG(x,msg,args...) BUGMSG2(x,"%s%6s: " msg, \
+#define BUGMSG(x,msg,args...) do { \
+	BUGMSG2(x,"%s%6s: " msg, \
             x==D_NORMAL	? KERN_WARNING : \
       x<=D_INIT_REASONS	? KERN_INFO    : KERN_DEBUG , \
-	dev->name , ## args)
+	dev->name , ## args); } while (0)
 
 
 #define SETMASK AINTMASK(lp->intmask)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov