Skip to content

Commit

Permalink
Staging: bcm: Fix warning: "Prefer netdev_dbg(netdev, ... then dev_db…
Browse files Browse the repository at this point in the history
…g(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: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Kevin McKinney authored and Greg Kroah-Hartman committed Jan 7, 2013
1 parent a049728 commit ee39b78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/bcm/Debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ struct bcm_debug_state {
(Type & Adapter->stDebugState.type) && \
(SubType & Adapter->stDebugState.subtype[Type])) { \
if (dbg_level & DBG_NO_FUNC_PRINT) \
printk(KERN_DEBUG string, ##args); \
pr_debug("%s:\n", string); \
else \
printk(KERN_DEBUG "%s:" string, __func__, ##args); \
pr_debug("%s:\n" string, __func__, ##args); \
} \
} while (0)

Expand All @@ -220,7 +220,7 @@ struct bcm_debug_state {
(dbg_level & DBG_LVL_BITMASK) <= Adapter->stDebugState.debug_level && \
(Type & Adapter->stDebugState.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, \
16, 1, buffer, bufferlen, false); \
} \
Expand Down

0 comments on commit ee39b78

Please sign in to comment.