netfilter: xt_LOG: don't use xchg() for simple assignment
[pandora-kernel.git] / include / linux / printk.h
index f0e22f7..13abc06 100644 (file)
@@ -80,13 +80,13 @@ struct va_format {
 
 /*
  * Dummy printk for disabled debugging statements to use whilst maintaining
- * gcc's format and side-effect checking.
+ * gcc's format checking.
  */
-static inline __printf(1, 2)
-int no_printk(const char *fmt, ...)
-{
-       return 0;
-}
+#define no_printk(fmt, ...)                    \
+do {                                           \
+       if (0)                                  \
+               printk(fmt, ##__VA_ARGS__);     \
+} while (0)
 
 extern asmlinkage __printf(1, 2)
 void early_printk(const char *fmt, ...);