Unionfs: display informational messages only if debug is on
authorErez Zadok <ezk@cs.sunysb.edu>
Fri, 16 Nov 2007 18:45:55 +0000 (13:45 -0500)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:03:09 +0000 (19:03 -0400)
This is to avoid filling the console/logs with messages that are primarily
of debugging use.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Acked-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
fs/unionfs/union.h

index d1db108f96bc5669afc62e46b752743f38acd165..4f4db3e89f188d6c7086d7845a7205b46e0b98d8 100644 (file)
@@ -539,7 +539,7 @@ static inline struct dentry *__odf_dstack_pop(struct dentry_stack *stack)
 
 #ifdef CONFIG_UNION_FS_DEBUG
 
-#define dprintk                printk
+#define dprintk(args...)               printk(args)
 
 /* useful for tracking code reachability */
 #define UDBG printk("DBG:%s:%s:%d\n",__FILE__,__FUNCTION__,__LINE__)
@@ -581,7 +581,7 @@ extern void __show_inode_counts(const struct inode *inode,
 
 #else /* not CONFIG_UNION_FS_DEBUG */
 
-#define dprintk(x...)          do { ; } while (0)
+#define dprintk(args...)               do { } while (0)
 
 /* we leave useful hooks for these check functions throughout the code */
 #define unionfs_check_inode(i)         do { } while(0)