[PATCH] ubifs: make debug messages more silent

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Mon Aug 20 04:33:22 EDT 2012


With pr_debug being used instead of printk(KERN_DEBUG ...) the messages
don't make it into the bootlog without further actions. This saves 32
lines of ubifs messages for me that are not needed most of the time on a
system with / on ubifs.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
---
 fs/ubifs/debug.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ubifs/debug.h b/fs/ubifs/debug.h
index 8b8cc4e..39828f2 100644
--- a/fs/ubifs/debug.h
+++ b/fs/ubifs/debug.h
@@ -176,7 +176,7 @@ struct ubifs_global_debug_info {
 
 /* Just a debugging messages not related to any specific UBIFS subsystem */
 #define dbg_msg(fmt, ...)                                                      \
-	printk(KERN_DEBUG "UBIFS DBG (pid %d): %s: " fmt "\n", current->pid,   \
+	pr_debug("UBIFS DBG (pid %d): %s: " fmt "\n", current->pid,   \
 	       __func__, ##__VA_ARGS__)
 
 /* General messages */
-- 
1.7.10.4




More information about the linux-mtd mailing list