projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33b98f2
)
Btrfs: make btrfs_debug match pr_debug handling related to DEBUG
author
Frank Holton
<
[email protected]
>
Wed, 13 Nov 2013 00:22:53 +0000
(19:22 -0500)
committer
Chris Mason
<
[email protected]
>
Tue, 28 Jan 2014 21:19:39 +0000
(13:19 -0800)
The kernel macro pr_debug is defined as a empty statement when DEBUG is
not defined. Make btrfs_debug match pr_debug to avoid spamming
the kernel log with debug messages
Signed-off-by: Frank Holton <
[email protected]
>
Signed-off-by: Josef Bacik <
[email protected]
>
Signed-off-by: Chris Mason <
[email protected]
>
fs/btrfs/ctree.h
patch
|
blob
|
history
diff --git
a/fs/btrfs/ctree.h
b/fs/btrfs/ctree.h
index 47835f5850deec777699b3cf8c66d906f026ac86..7158c97fdc5edef325400a0f2cdfbd800795a6ee 100644
(file)
--- a/
fs/btrfs/ctree.h
+++ b/
fs/btrfs/ctree.h
@@
-3816,8
+3816,14
@@
void btrfs_printk(const struct btrfs_fs_info *fs_info, const char *fmt, ...)
btrfs_printk(fs_info, KERN_NOTICE fmt, ##args)
#define btrfs_info(fs_info, fmt, args...) \
btrfs_printk(fs_info, KERN_INFO fmt, ##args)
+
+#ifdef DEBUG
#define btrfs_debug(fs_info, fmt, args...) \
btrfs_printk(fs_info, KERN_DEBUG fmt, ##args)
+#else
+#define btrfs_debug(fs_info, fmt, args...) \
+ no_printk(KERN_DEBUG fmt, ##args)
+#endif
#ifdef CONFIG_BTRFS_ASSERT