mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 14:34:13 -04:00
Staging: rtl8188eu: os_dep: Use %s and __func__ in strings
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f3dbf6ea4f
commit
8f3d9001dd
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user