Commit ee39b787 authored by Kevin McKinney's avatar Kevin McKinney Committed by Greg Kroah-Hartman

Staging: bcm: Fix warning: "Prefer netdev_dbg(netdev, ... then dev_dbg(dev,...

Staging: bcm: Fix warning: "Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then pr_debug(... to printk(KERN_DEBUG ..."

This patch fixes the following warning: "WARNING:
Prefer netdev_dbg(netdev, ... then dev_dbg(dev,
... then pr_debug(...  to printk(KERN_DEBUG ..." in
Debug.h
Signed-off-by: default avatarKevin McKinney <klmckinney1@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a0497289
...@@ -207,9 +207,9 @@ struct bcm_debug_state { ...@@ -207,9 +207,9 @@ struct bcm_debug_state {
(Type & Adapter->stDebugState.type) && \ (Type & Adapter->stDebugState.type) && \
(SubType & Adapter->stDebugState.subtype[Type])) { \ (SubType & Adapter->stDebugState.subtype[Type])) { \
if (dbg_level & DBG_NO_FUNC_PRINT) \ if (dbg_level & DBG_NO_FUNC_PRINT) \
printk(KERN_DEBUG string, ##args); \ pr_debug("%s:\n", string); \
else \ else \
printk(KERN_DEBUG "%s:" string, __func__, ##args); \ pr_debug("%s:\n" string, __func__, ##args); \
} \ } \
} while (0) } while (0)
...@@ -220,7 +220,7 @@ struct bcm_debug_state { ...@@ -220,7 +220,7 @@ struct bcm_debug_state {
(dbg_level & DBG_LVL_BITMASK) <= Adapter->stDebugState.debug_level && \ (dbg_level & DBG_LVL_BITMASK) <= Adapter->stDebugState.debug_level && \
(Type & Adapter->stDebugState.type) && \ (Type & Adapter->stDebugState.type) && \
(SubType & Adapter->stDebugState.subtype[Type]))) { \ (SubType & Adapter->stDebugState.subtype[Type]))) { \
printk(KERN_DEBUG "%s:\n", __func__); \ pr_debug("%s:\n", __func__); \
print_hex_dump(KERN_DEBUG, " ", DUMP_PREFIX_OFFSET, \ print_hex_dump(KERN_DEBUG, " ", DUMP_PREFIX_OFFSET, \
16, 1, buffer, bufferlen, false); \ 16, 1, buffer, bufferlen, false); \
} \ } \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment