Commit 35c2524a authored by Ana Rey's avatar Ana Rey Committed by Greg Kroah-Hartman

staging: rtl8187se: Convert from printk into netdev_err or netdev_info

Convert from printk functions into netdev_err or netdev_info.

Fix checkpatch.pl warning:
WARNING: printk() should include KERN_ facility level
Signed-off-by: default avatarAna Rey <anarey@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9e32b6aa
...@@ -138,8 +138,8 @@ static inline char *rtl818x_translate_scan(struct ieee80211_device *ieee, ...@@ -138,8 +138,8 @@ static inline char *rtl818x_translate_scan(struct ieee80211_device *ieee,
/* Add quality statistics */ /* Add quality statistics */
/* TODO: Fix these values... */ /* TODO: Fix these values... */
if (network->stats.signal == 0 || network->stats.rssi == 0) if (network->stats.signal == 0 || network->stats.rssi == 0)
printk("========>signal:%d, rssi:%d\n", network->stats.signal, netdev_info(ieee->dev, "========>signal:%d, rssi:%d\n",
network->stats.rssi); network->stats.signal, network->stats.rssi);
iwe.cmd = IWEVQUAL; iwe.cmd = IWEVQUAL;
iwe.u.qual.qual = network->stats.signalstrength; iwe.u.qual.qual = network->stats.signalstrength;
iwe.u.qual.level = network->stats.signal; iwe.u.qual.level = network->stats.signal;
...@@ -541,7 +541,8 @@ int ieee80211_wx_set_encode_ext(struct ieee80211_device *ieee, ...@@ -541,7 +541,8 @@ int ieee80211_wx_set_encode_ext(struct ieee80211_device *ieee,
if (ops == NULL) { if (ops == NULL) {
IEEE80211_DEBUG_WX("%s: unknown crypto alg %d\n", IEEE80211_DEBUG_WX("%s: unknown crypto alg %d\n",
dev->name, ext->alg); dev->name, ext->alg);
printk("========>unknown crypto alg %d\n", ext->alg); netdev_err(ieee->dev, "========>unknown crypto alg %d\n",
ext->alg);
ret = -EINVAL; ret = -EINVAL;
goto done; goto done;
} }
...@@ -572,7 +573,7 @@ int ieee80211_wx_set_encode_ext(struct ieee80211_device *ieee, ...@@ -572,7 +573,7 @@ int ieee80211_wx_set_encode_ext(struct ieee80211_device *ieee,
(*crypt)->ops->set_key(ext->key, ext->key_len, ext->rx_seq, (*crypt)->ops->set_key(ext->key, ext->key_len, ext->rx_seq,
(*crypt)->priv) < 0) { (*crypt)->priv) < 0) {
IEEE80211_DEBUG_WX("%s: key setting failed\n", dev->name); IEEE80211_DEBUG_WX("%s: key setting failed\n", dev->name);
printk("key setting failed\n"); netdev_err(ieee->dev, "key setting failed\n");
ret = -EINVAL; ret = -EINVAL;
goto done; goto done;
} }
...@@ -684,13 +685,13 @@ int ieee80211_wx_set_gen_ie(struct ieee80211_device *ieee, u8 *ie, size_t len) ...@@ -684,13 +685,13 @@ int ieee80211_wx_set_gen_ie(struct ieee80211_device *ieee, u8 *ie, size_t len)
u8 *buf = NULL; u8 *buf = NULL;
if (len > MAX_WPA_IE_LEN || (len && ie == NULL)) { if (len > MAX_WPA_IE_LEN || (len && ie == NULL)) {
printk("return error out, len:%zu\n", len); netdev_err(ieee->dev, "return error out, len:%zu\n", len);
return -EINVAL; return -EINVAL;
} }
if (len) { if (len) {
if (len != ie[1]+2) { if (len != ie[1]+2) {
printk("len:%zu, ie:%d\n", len, ie[1]); netdev_err(ieee->dev, "len:%zu, ie:%d\n", len, ie[1]);
return -EINVAL; return -EINVAL;
} }
buf = kmemdup(ie, len, GFP_KERNEL); buf = kmemdup(ie, len, GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment