patch-2.1.103 linux/include/net/ip_masq.h

Next file: linux/init/main.c
Previous file: linux/include/linux/umsdos_fs_i.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.102/linux/include/net/ip_masq.h linux/include/net/ip_masq.h
@@ -258,9 +258,10 @@
 extern int ip_masq_get_debug_level(void);
 
 #ifndef CONFIG_IP_MASQ_NDEBUG
-#define IP_MASQ_DEBUG(level, msg...) \
+#define IP_MASQ_DEBUG(level, msg...) do { \
 	if (level <= ip_masq_get_debug_level()) \
-		printk(KERN_DEBUG "IP_MASQ:" ## msg)
+		printk(KERN_DEBUG "IP_MASQ:" ## msg); \
+	} while (0)
 #else	/* NO DEBUGGING at ALL */
 #define IP_MASQ_DEBUG(level, msg...) do { } while (0)
 #endif

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