[PATCH 3/7] debug: use printk() instead pr_debug()
Kalle Valo
kvalo at qca.qualcomm.com
Thu May 16 08:42:17 EDT 2013
If CONFIG_DYNAMIC_DEBUG is enabled user would need
to use both debug_mask and /sys/kernel/debug/dynamic_debug/
to get debug logs. That's just confusing, it should be
enough to use debug_mask module parameter.
Signed-off-by: Kalle Valo <kvalo at qca.qualcomm.com>
---
wcn36xx.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wcn36xx.h b/wcn36xx.h
index e0302d9..74145b7 100644
--- a/wcn36xx.h
+++ b/wcn36xx.h
@@ -56,7 +56,7 @@ enum wcn36xx_debug_mask {
#define wcn36xx_dbg(mask, fmt, arg...) \
if (debug_mask & mask) \
- pr_debug(DRIVER_PREFIX fmt "\n", ##arg)
+ printk(KERN_DEBUG DRIVER_PREFIX fmt "\n", ##arg)
#define wcn36xx_dbg_dump(mask, prefix_str, buf, len) \
if (debug_mask & mask) \
More information about the wcn36xx
mailing list