Staging: rtl8192e: Fix printk style warning
authorMahati Chamarthy <mahati.chamarthy@gmail.com>
Fri, 19 Sep 2014 21:10:43 +0000 (02:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Sep 2014 00:14:30 +0000 (17:14 -0700)
This fixes the following checkpatch.pl warnings:
WARNING: Prefer [subsystem eg: netdev]_info([subsystem]dev, ... then dev_info(dev, ... then pr_info(...  to printk(KERN_INFO ...

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_HTProc.c

index a6d861acf81fe6ef5e5fd051dad3176b5c5abd0f..f11c1a22fb8d05c2b8de1f335dd469e9429ddb64 100644 (file)
@@ -1054,7 +1054,7 @@ void HTSetConnectBwMode(struct rtllib_device *ieee,
                Bandwidth = HT_CHANNEL_WIDTH_20;
 
        if (pHTInfo->bSwBwInProgress) {
-               printk(KERN_INFO "%s: bSwBwInProgress!!\n", __func__);
+               pr_info("%s: bSwBwInProgress!!\n", __func__);
                return;
        }
        if (Bandwidth == HT_CHANNEL_WIDTH_20_40) {
@@ -1074,7 +1074,7 @@ void HTSetConnectBwMode(struct rtllib_device *ieee,
                pHTInfo->CurSTAExtChnlOffset = HT_EXTCHNL_OFFSET_NO_EXT;
        }
 
-       printk(KERN_INFO "%s():pHTInfo->bCurBW40MHz:%x\n", __func__,
+       pr_info("%s():pHTInfo->bCurBW40MHz:%x\n", __func__,
               pHTInfo->bCurBW40MHz);
 
        pHTInfo->bSwBwInProgress = true;