Checkpatch scripts recommends using pr_warn,pr_err calls
in place of printk(KERN_WARNING, printk(KERN_ERR respectively.
This patch fixes the checkpatch warnings.

Signed-off-by: Vivek Agate <[email protected]>
---
 drivers/staging/wlan-ng/cfg80211.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/wlan-ng/cfg80211.c 
b/drivers/staging/wlan-ng/cfg80211.c
index f1bce18..9f97ae1 100644
--- a/drivers/staging/wlan-ng/cfg80211.c
+++ b/drivers/staging/wlan-ng/cfg80211.c
@@ -122,7 +122,7 @@ int prism2_change_virtual_intf(struct wiphy *wiphy,
                data = 1;
                break;
        default:
-               printk(KERN_WARNING "Operation mode: %d not support\n", type);
+               pr_warn("Operation mode: %d not support\n", type);
                return -EOPNOTSUPP;
        }
 
@@ -352,7 +352,7 @@ int prism2_scan(struct wiphy *wiphy, struct 
cfg80211_scan_request *request)
                return -EBUSY;
 
        if (wlandev->macmode == WLAN_MACMODE_ESS_AP) {
-               printk(KERN_ERR "Can't scan in AP mode\n");
+               pr_err("Can't scan in AP mode\n");
                return -EOPNOTSUPP;
        }
 
@@ -510,8 +510,7 @@ int prism2_connect(struct wiphy *wiphy, struct net_device 
*dev,
                ((sme->auth_type == NL80211_AUTHTYPE_AUTOMATIC) && is_wep))
                        msg_join.authtype.data = P80211ENUM_authalg_sharedkey;
        else
-               printk(KERN_WARNING
-                       "Unhandled authorisation type for connect (%d)\n",
+               pr_warn("Unhandled authorisation type for connect (%d)\n",
                        sme->auth_type);
 
        /* Set the encryption - we only support wep */
-- 
1.7.10.4

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Reply via email to