diff options
author | YAMANE Toshiaki <yamanetoshi@gmail.com> | 2012-11-20 21:11:54 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-21 13:59:59 -0800 |
commit | 3c304fe63bdd8bfebfcc9196467cd787355bd4d5 (patch) | |
tree | fb85df00b7f759a1cb063d802a2c77fb198262e3 /drivers/staging/rtl8187se | |
parent | 39550d282342357e1d4227b4bc5b94fb9b1ab975 (diff) | |
download | linux-3.10-3c304fe63bdd8bfebfcc9196467cd787355bd4d5.tar.gz linux-3.10-3c304fe63bdd8bfebfcc9196467cd787355bd4d5.tar.bz2 linux-3.10-3c304fe63bdd8bfebfcc9196467cd787355bd4d5.zip |
staging/rtl8187se: Use netdev_ printks in ieee80211/ieee80211_module.c
The following warning fixed.
- WARNING: Prefer netdev_warn(netdev, ... then dev_warn(dev, ... then pr_warn(... to printk(KERN_WARNING ...
Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8187se')
-rw-r--r-- | drivers/staging/rtl8187se/ieee80211/ieee80211_module.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_module.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_module.c index 0ed4c93f3c8..66b4833a503 100644 --- a/drivers/staging/rtl8187se/ieee80211/ieee80211_module.c +++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_module.c @@ -69,8 +69,7 @@ static inline int ieee80211_networks_allocate(struct ieee80211_device *ieee) MAX_NETWORK_COUNT, sizeof(struct ieee80211_network), GFP_KERNEL); if (!ieee->networks) { - printk(KERN_WARNING "%s: Out of memory allocating beacons\n", - ieee->dev->name); + netdev_warn(ieee->dev, "Out of memory allocating beacons\n"); return -ENOMEM; } |