staging: ks7010: ks_wlan_net: Use netdev_ instead of printk
authorGeorgiana Rodica Chelu <georgiana.chelu93@gmail.com>
Mon, 26 Sep 2016 08:15:56 +0000 (11:15 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Sep 2016 11:03:57 +0000 (13:03 +0200)
commitc8be6461054c8c1f536e3085b15b539c1a9c4c7e
tree5e925d9a9e63a6f9a8cf7a347f0d6b90332941f8
parent58fce732f02a198dbf55708d8221efc292e948b7
staging: ks7010: ks_wlan_net: Use netdev_ instead of printk

The checkpatch.pl script found the following warning:

WARNING: printk() should include KERN_ facility level

After adding the KERN_ facility level to printk(), the script showed
another warning:

WARNING: Prefer [subsystem eg: netdev]_info([subsystem]dev, ... then
dev_info(dev, ... then pr_info(...  to printk(KERN_INFO ...

The warning is similar for KERN_ERR and KERN_DEBUG. In conclusion,
use netdev_info(), netdev_err() or netdev_dbg() when there is
a netdev device.

Signed-off-by: Georgiana Rodica Chelu <georgiana.chelu93@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_wlan_net.c