]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
Staging: bcm: Fix warning: "Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then...
authorKevin McKinney <klmckinney1@gmail.com>
Sat, 5 Jan 2013 04:35:10 +0000 (23:35 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jan 2013 18:57:51 +0000 (10:57 -0800)
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>
drivers/staging/bcm/Debug.h

index 03be63fbff457a7107f5117d67a13a28afb710df..7b331215c1acc985c2cbc4fc6e603fe7474e2bdc 100644 (file)
@@ -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)
 
@@ -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);       \
                }                                                       \