[PATCH 4/5] staging: bcm: Use pr_debug in bcm_dbg

Joe Perches joe at perches.com
Mon Jan 9 18:06:55 UTC 2012


Convert bcm_dbg from using printk(KERN_DEBUG to pr_debug.

This allows dynamic debug to work appropriately.

Signed-off-by: Joe Perches <joe at perches.com>
---
 drivers/staging/bcm/Debug.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/bcm/Debug.h b/drivers/staging/bcm/Debug.h
index 7ce897f..c7d49da 100644
--- a/drivers/staging/bcm/Debug.h
+++ b/drivers/staging/bcm/Debug.h
@@ -224,7 +224,7 @@ do {									\
 	    (DBG_TYPE_##Type & (Adapter)->stDebugState.type) &&		\
 	    (SubType &							\
 	     (Adapter)->stDebugState.subtype[DBG_TYPE_##Type]))		\
-		printk(KERN_DEBUG fmt, ##__VA_ARGS__);			\
+		pr_debug(fmt, ##__VA_ARGS__);				\
 } while (0)
 
 #define BCM_DEBUG_PRINT_BUFFER(Adapter, Type, SubType, dbg_level,  buffer, bufferlen) do { \
-- 
1.7.8.111.gad25c.dirty




More information about the devel mailing list