GIT: unionfs2-2.6.27.y: Unionfs: display informational messages only if debug is on

Erez Zadok ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:17:10 EDT 2010


commit 5b3874935d0ae75741c7952ca7ba1bb1d093911e
Author: Erez Zadok <ezk at cs.sunysb.edu>
Date:   Thu Sep 27 23:45:46 2007 -0400

    Unionfs: display informational messages only if debug is on
    
    This is to avoid filling the console/logs with messages that are primarily
    of debugging use.
    
    Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>
    Acked-by: Josef 'Jeff' Sipek <jsipek at cs.sunysb.edu>

diff --git a/fs/unionfs/union.h b/fs/unionfs/union.h
index cfecf55..c273017 100644
--- a/fs/unionfs/union.h
+++ b/fs/unionfs/union.h
@@ -512,7 +512,7 @@ static inline void unionfs_mntput(struct dentry *dentry, int bindex)
 
 #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__)
@@ -554,7 +554,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)


More information about the unionfs-cvs mailing list