summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorJoe Perches2012-03-20 04:11:43 +0100
committerTheodore Ts'o2012-03-20 04:11:43 +0100
commitace36ad431c6820c2a8718cee85e5294d6e19747 (patch)
treeb912bf7cf277cbca3bb04d71e973ad1cbf62b432 /fs/ext4/ext4.h
parentext4: remove redundant "EXT4-fs: " from uses of ext4_msg (diff)
downloadkernel-qcow2-linux-ace36ad431c6820c2a8718cee85e5294d6e19747.tar.gz
kernel-qcow2-linux-ace36ad431c6820c2a8718cee85e5294d6e19747.tar.xz
kernel-qcow2-linux-ace36ad431c6820c2a8718cee85e5294d6e19747.zip
ext4: add no_printk argument validation, fix fallout
Add argument validation to debug functions. Use ##__VA_ARGS__. Fix format and argument mismatches. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 26ee54b2ce82..ded731ac8a32 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -53,7 +53,7 @@
printk(KERN_DEBUG f, ## a); \
} while (0)
#else
-#define ext4_debug(f, a...) do {} while (0)
+#define ext4_debug(fmt, ...) no_printk(fmt, ##__VA_ARGS__)
#endif
#define EXT4_ERROR_INODE(inode, fmt, a...) \