commit 2a25bbf14b244499168ec4772c6232ce77a23a72
Author: Erez Zadok <[EMAIL PROTECTED]>
Date: Sun Sep 30 00:13:35 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 <[EMAIL PROTECTED]>
Acked-by: Josef 'Jeff' Sipek <[EMAIL PROTECTED]>
diff --git a/fs/unionfs/union.h b/fs/unionfs/union.h
index 4493296..95ec1d2 100644
--- a/fs/unionfs/union.h
+++ b/fs/unionfs/union.h
@@ -515,7 +515,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__)
@@ -553,7 +553,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)
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs