brcmfmac: Convert printk(KERN_DEBUG to pr_debug
authorJoe Perches <joe@perches.com>
Sun, 15 Jan 2012 08:38:39 +0000 (00:38 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 24 Jan 2012 19:21:13 +0000 (14:21 -0500)
Allow dynamic debugging.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.h

index 8b2060b578d9d4f31fcdc927785f8fce723b264c..f5ca9fc526ede2810696b06c04097c721f175ea2 100644 (file)
@@ -39,13 +39,13 @@ do {                                                                        \
        if (BRCMF_ERROR_VAL == BRCMF_##level##_VAL) {                   \
                if (brcmf_msg_level & BRCMF_##level##_VAL) {            \
                        if (net_ratelimit())                            \
-                               printk(KERN_DEBUG "%s: " fmt,           \
-                                      __func__, ##__VA_ARGS__);        \
+                               pr_debug("%s: " fmt,                    \
+                                        __func__, ##__VA_ARGS__);      \
                }                                                       \
        } else {                                                        \
                if (brcmf_msg_level & BRCMF_##level##_VAL) {            \
-                       printk(KERN_DEBUG "%s: " fmt,                   \
-                              __func__, ##__VA_ARGS__);                \
+                       pr_debug("%s: " fmt,                            \
+                                __func__, ##__VA_ARGS__);              \
                }                                                       \
        }                                                               \
 } while (0)