staging/rtl8187se: Use netdev_ printks in ieee80211/ieee80211_module.c
authorYAMANE Toshiaki <yamanetoshi@gmail.com>
Tue, 20 Nov 2012 12:11:54 +0000 (21:11 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2012 21:59:59 +0000 (13:59 -0800)
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>
drivers/staging/rtl8187se/ieee80211/ieee80211_module.c

index 0ed4c93f3c891283ef558318254f18f93e5254e5..66b4833a503f91d90b8fd1046f008506c2df5d0e 100644 (file)
@@ -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;
        }