Staging: rtl8192u: Replace printk() with netdev_dbg()
authorKsenija Stanojevic <ksenija.stanojevic@gmail.com>
Sat, 28 Feb 2015 11:48:27 +0000 (12:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Mar 2015 01:07:05 +0000 (17:07 -0800)
For dynamic debugging netdev_dbg (if there is a ponterto a device
net structure) is preferred over printk(), which is the raw way
to print something. Issue found by checkpatch.pl.

Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_wx.c

index 361d2d0c3df167284d168d8b22ff040f08061b4e..b5a26f34b864e98816e9bc78af0a123679baced3 100644 (file)
@@ -139,7 +139,7 @@ static int r8192_wx_force_reset(struct net_device *dev,
 
        down(&priv->wx_sem);
 
-       printk("%s(): force reset ! extra is %d\n", __func__, *extra);
+       netdev_dbg(dev, "%s(): force reset ! extra is %d\n", __func__, *extra);
        priv->force_reset = *extra;
        up(&priv->wx_sem);
        return 0;