staging: rtl8187se: use netdev_info instead of printk
authorTeodora Baluta <teobaluta@gmail.com>
Mon, 21 Oct 2013 23:37:23 +0000 (02:37 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Oct 2013 21:17:58 +0000 (14:17 -0700)
WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ... then
pr_info(...  to printk(KERN_INFO

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

index 45e91032e49b0c43e64e51c740d6b54bcd3fa604..ba32df92bedbc9b44648c038e2fdcdcc4a478e73 100644 (file)
@@ -224,8 +224,7 @@ int ieee80211_encrypt_fragment(
 
        atomic_dec(&crypt->refcnt);
        if (res < 0) {
-               printk(KERN_INFO "%s: Encryption failed: len=%d.\n",
-                      ieee->dev->name, frag->len);
+               netdev_info(ieee->dev, "Encryption failed: len=%d.\n", frag->len);
                ieee->ieee_stats.tx_discards++;
                return -1;
        }