mirror of https://gitee.com/openkylin/linux.git
staging: rtl8192e: style fix - Prefer using '"%s...", __func__'
Fixed checkpatch warnings, Prefer using '"%s...", __func__' Signed-off-by: Derek Robson <robsonde@gmail.com> Link: https://lore.kernel.org/r/20200202070243.112059-1-robsonde@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f47e8780ce
commit
b99692f4db
|
@ -304,7 +304,7 @@ static void _rtl92e_read_eeprom_info(struct net_device *dev)
|
|||
u16 i, usValue, IC_Version;
|
||||
u16 EEPROMId;
|
||||
|
||||
RT_TRACE(COMP_INIT, "====> _rtl92e_read_eeprom_info\n");
|
||||
RT_TRACE(COMP_INIT, "====> %s\n", __func__);
|
||||
|
||||
EEPROMId = rtl92e_eeprom_read(dev, 0);
|
||||
if (EEPROMId != RTL8190_EEPROM_ID) {
|
||||
|
@ -1354,8 +1354,8 @@ static u8 _rtl92e_rate_hw_to_mgn(bool bIsHT, u8 rate)
|
|||
|
||||
default:
|
||||
RT_TRACE(COMP_RECV,
|
||||
"_rtl92e_rate_hw_to_mgn(): Non supportedRate [%x], bIsHT = %d!!!\n",
|
||||
rate, bIsHT);
|
||||
"%s: Non supportedRate [%x], bIsHT = %d!!!\n",
|
||||
__func__, rate, bIsHT);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1415,8 +1415,8 @@ static u8 _rtl92e_rate_hw_to_mgn(bool bIsHT, u8 rate)
|
|||
|
||||
default:
|
||||
RT_TRACE(COMP_RECV,
|
||||
"_rtl92e_rate_hw_to_mgn(): Non supported Rate [%x], bIsHT = %d!!!\n",
|
||||
rate, bIsHT);
|
||||
"%s: Non supported Rate [%x], bIsHT = %d!!!\n",
|
||||
__func__, rate, bIsHT);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1124,14 +1124,14 @@ static void _rtl92e_cck_tx_power_track_bw_switch_thermal(struct net_device *dev)
|
|||
priv->Record_CCK_20Mindex = 6;
|
||||
priv->CCK_index = priv->Record_CCK_20Mindex;
|
||||
RT_TRACE(COMP_POWER_TRACKING,
|
||||
"20MHz, _rtl92e_cck_tx_power_track_bw_switch_thermal(),CCK_index = %d\n",
|
||||
"20MHz, %s,CCK_index = %d\n", __func__,
|
||||
priv->CCK_index);
|
||||
break;
|
||||
|
||||
case HT_CHANNEL_WIDTH_20_40:
|
||||
priv->CCK_index = priv->Record_CCK_40Mindex;
|
||||
RT_TRACE(COMP_POWER_TRACKING,
|
||||
"40MHz, _rtl92e_cck_tx_power_track_bw_switch_thermal(), CCK_index = %d\n",
|
||||
"40MHz, %s, CCK_index = %d\n", __func__,
|
||||
priv->CCK_index);
|
||||
break;
|
||||
}
|
||||
|
@ -1155,7 +1155,7 @@ static void _rtl92e_set_bw_mode_work_item(struct net_device *dev)
|
|||
u8 regBwOpMode;
|
||||
|
||||
RT_TRACE(COMP_SWBW,
|
||||
"==>_rtl92e_set_bw_mode_work_item() Switch to %s bandwidth\n",
|
||||
"==>%s Switch to %s bandwidth\n", __func__,
|
||||
priv->CurrentChannelBW == HT_CHANNEL_WIDTH_20 ?
|
||||
"20MHz" : "40MHz");
|
||||
|
||||
|
@ -1416,15 +1416,14 @@ static bool _rtl92e_set_rf_power_state(struct net_device *dev,
|
|||
|
||||
if (priv->SetRFPowerStateInProgress)
|
||||
return false;
|
||||
RT_TRACE(COMP_PS, "===========> _rtl92e_set_rf_power_state()!\n");
|
||||
RT_TRACE(COMP_PS, "===========> %s!\n", __func__);
|
||||
priv->SetRFPowerStateInProgress = true;
|
||||
|
||||
switch (priv->rf_chip) {
|
||||
case RF_8256:
|
||||
switch (eRFPowerState) {
|
||||
case eRfOn:
|
||||
RT_TRACE(COMP_PS,
|
||||
"_rtl92e_set_rf_power_state() eRfOn!\n");
|
||||
RT_TRACE(COMP_PS, "%s eRfOn!\n", __func__);
|
||||
if ((priv->rtllib->eRFPowerState == eRfOff) &&
|
||||
RT_IN_PS_LEVEL(pPSC, RT_RF_OFF_LEVL_HALT_NIC)) {
|
||||
bool rtstatus;
|
||||
|
@ -1490,10 +1489,8 @@ static bool _rtl92e_set_rf_power_state(struct net_device *dev,
|
|||
}
|
||||
|
||||
if (i >= MAX_DOZE_WAITING_TIMES_9x) {
|
||||
RT_TRACE(COMP_POWER,
|
||||
"\n\n\n TimeOut!! _rtl92e_set_rf_power_state(): eRfOff: %d times TcbBusyQueue[%d] != 0 !!!\n",
|
||||
MAX_DOZE_WAITING_TIMES_9x,
|
||||
QueueID);
|
||||
RT_TRACE(COMP_POWER, "\n\n\n TimeOut!! %s: eRfOff: %d times TcbBusyQueue[%d] != 0 !!!\n",
|
||||
__func__, MAX_DOZE_WAITING_TIMES_9x, QueueID);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -1501,8 +1498,7 @@ static bool _rtl92e_set_rf_power_state(struct net_device *dev,
|
|||
break;
|
||||
|
||||
case eRfOff:
|
||||
RT_TRACE(COMP_PS,
|
||||
"_rtl92e_set_rf_power_state() eRfOff/Sleep !\n");
|
||||
RT_TRACE(COMP_PS, "%s eRfOff/Sleep !\n", __func__);
|
||||
|
||||
for (QueueID = 0, i = 0; QueueID < MAX_TX_QUEUE; ) {
|
||||
ring = &priv->tx_ring[QueueID];
|
||||
|
@ -1567,9 +1563,7 @@ static bool _rtl92e_set_rf_power_state(struct net_device *dev,
|
|||
}
|
||||
|
||||
priv->SetRFPowerStateInProgress = false;
|
||||
RT_TRACE(COMP_PS,
|
||||
"<=========== _rtl92e_set_rf_power_state() bResult = %d!\n",
|
||||
bResult);
|
||||
RT_TRACE(COMP_PS, "<=========== %s bResult = %d!\n", __func__, bResult);
|
||||
return bResult;
|
||||
}
|
||||
|
||||
|
@ -1581,21 +1575,17 @@ bool rtl92e_set_rf_power_state(struct net_device *dev,
|
|||
bool bResult = false;
|
||||
|
||||
RT_TRACE(COMP_PS,
|
||||
"---------> rtl92e_set_rf_power_state(): eRFPowerState(%d)\n",
|
||||
eRFPowerState);
|
||||
"---------> %s: eRFPowerState(%d)\n", __func__, eRFPowerState);
|
||||
if (eRFPowerState == priv->rtllib->eRFPowerState &&
|
||||
priv->bHwRfOffAction == 0) {
|
||||
RT_TRACE(COMP_PS,
|
||||
"<--------- rtl92e_set_rf_power_state(): discard the request for eRFPowerState(%d) is the same.\n",
|
||||
eRFPowerState);
|
||||
RT_TRACE(COMP_PS, "<--------- %s: discard the request for eRFPowerState(%d) is the same.\n",
|
||||
__func__, eRFPowerState);
|
||||
return bResult;
|
||||
}
|
||||
|
||||
bResult = _rtl92e_set_rf_power_state(dev, eRFPowerState);
|
||||
|
||||
RT_TRACE(COMP_PS,
|
||||
"<--------- rtl92e_set_rf_power_state(): bResult(%d)\n",
|
||||
bResult);
|
||||
RT_TRACE(COMP_PS, "<--------- %s: bResult(%d)\n", __func__, bResult);
|
||||
|
||||
return bResult;
|
||||
}
|
||||
|
|
|
@ -108,8 +108,8 @@ void rtl92e_set_key(struct net_device *dev, u8 EntryNo, u8 KeyIndex,
|
|||
}
|
||||
|
||||
RT_TRACE(COMP_SEC,
|
||||
"====>to rtl92e_set_key(), dev:%p, EntryNo:%d, KeyIndex:%d,KeyType:%d, MacAddr %pM\n",
|
||||
dev, EntryNo, KeyIndex, KeyType, MacAddr);
|
||||
"====>to %s, dev:%p, EntryNo:%d, KeyIndex:%d,KeyType:%d, MacAddr %pM\n",
|
||||
__func__, dev, EntryNo, KeyIndex, KeyType, MacAddr);
|
||||
|
||||
if (DefaultKey)
|
||||
usConfig |= BIT15 | (KeyType<<2);
|
||||
|
@ -163,7 +163,7 @@ void rtl92e_cam_restore(struct net_device *dev)
|
|||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff
|
||||
};
|
||||
|
||||
RT_TRACE(COMP_SEC, "rtl92e_cam_restore:\n");
|
||||
RT_TRACE(COMP_SEC, "%s:\n", __func__);
|
||||
|
||||
|
||||
if ((priv->rtllib->pairwise_key_type == KEY_TYPE_WEP40) ||
|
||||
|
|
|
@ -145,21 +145,21 @@ bool rtl92e_set_rf_state(struct net_device *dev,
|
|||
unsigned long flag;
|
||||
|
||||
RT_TRACE((COMP_PS | COMP_RF),
|
||||
"===>rtl92e_set_rf_state(): StateToSet(%d)\n", StateToSet);
|
||||
"===>%s: StateToSet(%d)\n", __func__, StateToSet);
|
||||
|
||||
while (true) {
|
||||
spin_lock_irqsave(&priv->rf_ps_lock, flag);
|
||||
if (priv->RFChangeInProgress) {
|
||||
spin_unlock_irqrestore(&priv->rf_ps_lock, flag);
|
||||
RT_TRACE((COMP_PS | COMP_RF),
|
||||
"rtl92e_set_rf_state(): RF Change in progress! Wait to set..StateToSet(%d).\n",
|
||||
StateToSet);
|
||||
"%s: RF Change in progress! Wait to set..StateToSet(%d).\n",
|
||||
__func__, StateToSet);
|
||||
|
||||
while (priv->RFChangeInProgress) {
|
||||
RFWaitCounter++;
|
||||
RT_TRACE((COMP_PS | COMP_RF),
|
||||
"rtl92e_set_rf_state(): Wait 1 ms (%d times)...\n",
|
||||
RFWaitCounter);
|
||||
"%s: Wait 1 ms (%d times)...\n",
|
||||
__func__, RFWaitCounter);
|
||||
mdelay(1);
|
||||
|
||||
if (RFWaitCounter > 100) {
|
||||
|
@ -195,8 +195,8 @@ bool rtl92e_set_rf_state(struct net_device *dev,
|
|||
bConnectBySSID = true;
|
||||
} else {
|
||||
RT_TRACE((COMP_PS | COMP_RF),
|
||||
"rtl92e_set_rf_state - eRfon reject pMgntInfo->RfOffReason= 0x%x, ChangeSource=0x%X\n",
|
||||
priv->rtllib->RfOffReason, ChangeSource);
|
||||
"%s - eRfon reject pMgntInfo->RfOffReason= 0x%x, ChangeSource=0x%X\n",
|
||||
__func__, priv->rtllib->RfOffReason, ChangeSource);
|
||||
}
|
||||
|
||||
break;
|
||||
|
@ -232,8 +232,8 @@ bool rtl92e_set_rf_state(struct net_device *dev,
|
|||
|
||||
if (bActionAllowed) {
|
||||
RT_TRACE((COMP_PS | COMP_RF),
|
||||
"rtl92e_set_rf_state(): Action is allowed.... StateToSet(%d), RfOffReason(%#X)\n",
|
||||
StateToSet, priv->rtllib->RfOffReason);
|
||||
"%s: Action is allowed.... StateToSet(%d), RfOffReason(%#X)\n",
|
||||
__func__, StateToSet, priv->rtllib->RfOffReason);
|
||||
PHY_SetRFPowerState(dev, StateToSet);
|
||||
if (StateToSet == eRfOn) {
|
||||
|
||||
|
@ -245,15 +245,15 @@ bool rtl92e_set_rf_state(struct net_device *dev,
|
|||
}
|
||||
} else {
|
||||
RT_TRACE((COMP_PS | COMP_RF),
|
||||
"rtl92e_set_rf_state(): Action is rejected.... StateToSet(%d), ChangeSource(%#X), RfOffReason(%#X)\n",
|
||||
StateToSet, ChangeSource, priv->rtllib->RfOffReason);
|
||||
"%s: Action is rejected.... StateToSet(%d), ChangeSource(%#X), RfOffReason(%#X)\n",
|
||||
__func__, StateToSet, ChangeSource, priv->rtllib->RfOffReason);
|
||||
}
|
||||
|
||||
spin_lock_irqsave(&priv->rf_ps_lock, flag);
|
||||
priv->RFChangeInProgress = false;
|
||||
spin_unlock_irqrestore(&priv->rf_ps_lock, flag);
|
||||
|
||||
RT_TRACE((COMP_PS | COMP_RF), "<===rtl92e_set_rf_state()\n");
|
||||
RT_TRACE((COMP_PS | COMP_RF), "<===%s\n", __func__);
|
||||
return bActionAllowed;
|
||||
}
|
||||
|
||||
|
|
|
@ -119,8 +119,8 @@ static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *Dst,
|
|||
}
|
||||
|
||||
#ifdef VERBOSE_DEBUG
|
||||
print_hex_dump_bytes("rtllib_ADDBA(): ", DUMP_PREFIX_NONE, skb->data,
|
||||
skb->len);
|
||||
print_hex_dump_bytes("%s: ", DUMP_PREFIX_NONE, skb->data,
|
||||
__func__, skb->len);
|
||||
#endif
|
||||
return skb;
|
||||
}
|
||||
|
@ -170,8 +170,8 @@ static struct sk_buff *rtllib_DELBA(struct rtllib_device *ieee, u8 *dst,
|
|||
tag += 2;
|
||||
|
||||
#ifdef VERBOSE_DEBUG
|
||||
print_hex_dump_bytes("rtllib_DELBA(): ", DUMP_PREFIX_NONE, skb->data,
|
||||
skb->len);
|
||||
print_hex_dump_bytes("%s: ", DUMP_PREFIX_NONE, skb->data,
|
||||
__func__, skb->len);
|
||||
#endif
|
||||
return skb;
|
||||
}
|
||||
|
@ -235,7 +235,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb)
|
|||
}
|
||||
|
||||
#ifdef VERBOSE_DEBUG
|
||||
print_hex_dump_bytes("rtllib_rx_ADDBAReq(): ", DUMP_PREFIX_NONE,
|
||||
print_hex_dump_bytes("%s: ", DUMP_PREFIX_NONE, __func__,
|
||||
skb->data, skb->len);
|
||||
#endif
|
||||
|
||||
|
@ -433,8 +433,8 @@ int rtllib_rx_DELBA(struct rtllib_device *ieee, struct sk_buff *skb)
|
|||
}
|
||||
|
||||
#ifdef VERBOSE_DEBUG
|
||||
print_hex_dump_bytes("rtllib_rx_DELBA(): ", DUMP_PREFIX_NONE, skb->data,
|
||||
skb->len);
|
||||
print_hex_dump_bytes("%s: ", DUMP_PREFIX_NONE, skb->data,
|
||||
__func__, skb->len);
|
||||
#endif
|
||||
delba = (struct rtllib_hdr_3addr *)skb->data;
|
||||
dst = (u8 *)(&delba->addr2[0]);
|
||||
|
|
|
@ -545,7 +545,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee)
|
|||
|
||||
|
||||
#ifdef VERBOSE_DEBUG
|
||||
print_hex_dump_bytes("HTOnAssocRsp(): ", DUMP_PREFIX_NONE,
|
||||
print_hex_dump_bytes("%s: ", __func__, DUMP_PREFIX_NONE,
|
||||
pPeerHTCap, sizeof(struct ht_capab_ele));
|
||||
#endif
|
||||
HTSetConnectBwMode(ieee, (enum ht_channel_width)(pPeerHTCap->ChlWidth),
|
||||
|
|
|
@ -440,7 +440,7 @@ void RemovePeerTS(struct rtllib_device *ieee, u8 *Addr)
|
|||
{
|
||||
struct ts_common_info *pTS, *pTmpTS;
|
||||
|
||||
netdev_info(ieee->dev, "===========>RemovePeerTS, %pM\n", Addr);
|
||||
netdev_info(ieee->dev, "===========>%s, %pM\n", __func__, Addr);
|
||||
|
||||
list_for_each_entry_safe(pTS, pTmpTS, &ieee->Tx_TS_Pending_List, List) {
|
||||
if (memcmp(pTS->Addr, Addr, 6) == 0) {
|
||||
|
|
|
@ -241,7 +241,7 @@ static int rtllib_classify(struct sk_buff *skb, u8 bIsAmsdu)
|
|||
return 0;
|
||||
|
||||
#ifdef VERBOSE_DEBUG
|
||||
print_hex_dump_bytes("rtllib_classify(): ", DUMP_PREFIX_NONE, skb->data,
|
||||
print_hex_dump_bytes("%s: ", __func__, DUMP_PREFIX_NONE, skb->data,
|
||||
skb->len);
|
||||
#endif
|
||||
ip = ip_hdr(skb);
|
||||
|
|
Loading…
Reference in New Issue