Staging: rtl8188eu: os_dep: Use %s and __func__ in strings
authorPuranjay Mohan <puranjay12@gmail.com>
Wed, 15 May 2019 17:18:44 +0000 (22:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 May 2019 05:40:43 +0000 (07:40 +0200)
Fix following checkpatch.pl warnings by using %s and __func__
in strings instead of function names.

WARNING: Prefer using '"%s...", __func__' to using 'rtw_report_sec_ie', this function's name, in a string
and other similar warning.

Signed-off-by: Puranjay Mohan <puranjay12@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/mlme_linux.c

index 9db11b1..e660bd4 100644 (file)
@@ -93,11 +93,11 @@ void rtw_report_sec_ie(struct adapter *adapter, u8 authmode, u8 *sec_ie)
        union iwreq_data wrqu;
 
        RT_TRACE(_module_mlme_osdep_c_, _drv_info_,
-                ("+rtw_report_sec_ie, authmode=%d\n", authmode));
+                ("+%s, authmode=%d\n", __func__, authmode));
        buff = NULL;
        if (authmode == _WPA_IE_ID_) {
                RT_TRACE(_module_mlme_osdep_c_, _drv_info_,
-                        ("rtw_report_sec_ie, authmode=%d\n", authmode));
+                        ("%s, authmode=%d\n", __func__, authmode));
                buff = rtw_malloc(IW_CUSTOM_MAX);
                if (!buff)
                        return;
@@ -149,7 +149,7 @@ void rtw_indicate_sta_assoc_event(struct adapter *padapter, struct sta_info *pst
 
        memcpy(wrqu.addr.sa_data, psta->hwaddr, ETH_ALEN);
 
-       DBG_88E("+rtw_indicate_sta_assoc_event\n");
+       DBG_88E("+%s\n", __func__);
 
        wireless_send_event(padapter->pnetdev, IWEVREGISTERED, &wrqu, NULL);
 }
@@ -172,7 +172,7 @@ void rtw_indicate_sta_disassoc_event(struct adapter *padapter, struct sta_info *
 
        memcpy(wrqu.addr.sa_data, psta->hwaddr, ETH_ALEN);
 
-       DBG_88E("+rtw_indicate_sta_disassoc_event\n");
+       DBG_88E("+%s\n", __func__);
 
        wireless_send_event(padapter->pnetdev, IWEVEXPIRED, &wrqu, NULL);
 }