OSDN Git Service

staging: rtl8192u: Replace printk() with more standardize output format.
authorArushi Singhal <arushisinghal19971997@gmail.com>
Wed, 7 Mar 2018 10:39:09 +0000 (16:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Mar 2018 17:56:15 +0000 (09:56 -0800)
commit11bc6596aaad2c30b1538c15fa5471ed283aa3e4
tree4885049fb42cf72dea63ac9134335ef528c879da
parentc674f4aab45d702bdc18288646ddc6c348589d98
staging: rtl8192u: Replace printk() with more standardize output format.

printk() is the raw way to print output and should be avoided.

For drivers with defined "struct device object", dev_*macro() is
prefer and for "struct netdevice object", netdev_*macro() is prefer over
dev_*macro() to standardize the output format within the subsystem.

If no "struct device object" is defined prefer pr_*macro() over printk().

This patch Replace printk having a log level with the appropriate output
format according to the order of preference.

Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c