From: Erez Zadok Date: Fri, 28 Sep 2007 03:45:46 +0000 (-0400) Subject: Unionfs: display informational messages only if debug is on X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=39c3ae4b2a3e5901b910be65ed55eadc30741af4;p=unionfs-3.7.y.git 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 Acked-by: Josef 'Jeff' Sipek --- diff --git a/fs/unionfs/union.h b/fs/unionfs/union.h index cfecf553c32..c27301795e1 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)