staging: rtl8187se: prefer netdev_dbg to printk
authorTeodora Baluta <teobaluta@gmail.com>
Mon, 21 Oct 2013 23:37:22 +0000 (02:37 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Oct 2013 21:17:57 +0000 (14:17 -0700)
This patch fixes the following checkpatch warning:

WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then
pr_debug(...  to printk(KERN_DEBUG ...

Signed-off-by: Teodora Baluta <teobaluta@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c

index afb09572077e07557b3046a46142a685d9754219..45e91032e49b0c43e64e51c740d6b54bcd3fa604 100644 (file)
@@ -199,9 +199,8 @@ int ieee80211_encrypt_fragment(
            crypt && crypt->ops && strcmp(crypt->ops->name, "TKIP") == 0) {
                header = (struct ieee80211_hdr_4addr *)frag->data;
                if (net_ratelimit()) {
-                       printk(KERN_DEBUG "%s: TKIP countermeasures: dropped "
-                              "TX packet to %pM\n",
-                              ieee->dev->name, header->addr1);
+                       netdev_dbg(ieee->dev, "TKIP countermeasures: dropped "
+                              "TX packet to %pM\n", header->addr1);
                }
                return -1;
        }