Skip to content

Commit ee39b78

Browse files
Kevin McKinneygregkh
authored andcommitted
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: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a049728 commit ee39b78

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/staging/bcm/Debug.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,9 @@ struct bcm_debug_state {
207207
(Type & Adapter->stDebugState.type) && \
208208
(SubType & Adapter->stDebugState.subtype[Type])) { \
209209
if (dbg_level & DBG_NO_FUNC_PRINT) \
210-
printk(KERN_DEBUG string, ##args); \
210+
pr_debug("%s:\n", string); \
211211
else \
212-
printk(KERN_DEBUG "%s:" string, __func__, ##args); \
212+
pr_debug("%s:\n" string, __func__, ##args); \
213213
} \
214214
} while (0)
215215

@@ -220,7 +220,7 @@ struct bcm_debug_state {
220220
(dbg_level & DBG_LVL_BITMASK) <= Adapter->stDebugState.debug_level && \
221221
(Type & Adapter->stDebugState.type) && \
222222
(SubType & Adapter->stDebugState.subtype[Type]))) { \
223-
printk(KERN_DEBUG "%s:\n", __func__); \
223+
pr_debug("%s:\n", __func__); \
224224
print_hex_dump(KERN_DEBUG, " ", DUMP_PREFIX_OFFSET, \
225225
16, 1, buffer, bufferlen, false); \
226226
} \

0 commit comments

Comments
 (0)