brcm80211: Convert printk(KERN_DEBUG to pr_debug
Use pr_debug to allow dynamic debugging to work. Move an #endif to allow brcmf_dbg_hex_dump to be outside the #if/#endif block. Move a const char* declaration to be inside a pr_debug so the function doesn't need a #if/#endif block. Don't use temporaries in debugging functions so the code can be optimized away. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
8fb1eb8b22
commit
18aad4f8e1
@@ -247,7 +247,7 @@ void brcmu_prpkt(const char *msg, struct sk_buff *p0)
|
||||
struct sk_buff *p;
|
||||
|
||||
if (msg && (msg[0] != '\0'))
|
||||
printk(KERN_DEBUG "%s:\n", msg);
|
||||
pr_debug("%s:\n", msg);
|
||||
|
||||
for (p = p0; p; p = p->next)
|
||||
print_hex_dump_bytes("", DUMP_PREFIX_OFFSET, p->data, p->len);
|
||||
|
Reference in New Issue
Block a user