提交 8cc91dd5 编写于 作者: T Teodora Baluta 提交者: Greg Kroah-Hartman

staging: rtl8187se: prefer netdev_dbg to printk

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: NTeodora Baluta <teobaluta@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 fe8433bf
...@@ -199,9 +199,8 @@ int ieee80211_encrypt_fragment( ...@@ -199,9 +199,8 @@ int ieee80211_encrypt_fragment(
crypt && crypt->ops && strcmp(crypt->ops->name, "TKIP") == 0) { crypt && crypt->ops && strcmp(crypt->ops->name, "TKIP") == 0) {
header = (struct ieee80211_hdr_4addr *)frag->data; header = (struct ieee80211_hdr_4addr *)frag->data;
if (net_ratelimit()) { if (net_ratelimit()) {
printk(KERN_DEBUG "%s: TKIP countermeasures: dropped " netdev_dbg(ieee->dev, "TKIP countermeasures: dropped "
"TX packet to %pM\n", "TX packet to %pM\n", header->addr1);
ieee->dev->name, header->addr1);
} }
return -1; return -1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册