Use __func__ instead of hardcoded function names.
Reported by checkpatch.

Signed-off-by: Michael Straube <straube.li...@gmail.com>
---
 .../rtl8188eu/hal/hal8188e_rate_adaptive.c    | 36 ++++++++++---------
 1 file changed, 20 insertions(+), 16 deletions(-)

diff --git a/drivers/staging/rtl8188eu/hal/hal8188e_rate_adaptive.c 
b/drivers/staging/rtl8188eu/hal/hal8188e_rate_adaptive.c
index 6dbd7d261f1e..02f423accee8 100644
--- a/drivers/staging/rtl8188eu/hal/hal8188e_rate_adaptive.c
+++ b/drivers/staging/rtl8188eu/hal/hal8188e_rate_adaptive.c
@@ -127,10 +127,10 @@ static int odm_RateDown_8188E(struct odm_dm_struct 
*dm_odm,
        u8 i;
 
        ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE,
-                       ODM_DBG_TRACE, ("=====>odm_RateDown_8188E()\n"));
+                       ODM_DBG_TRACE, ("=====>%s()\n", __func__));
        if (!pRaInfo) {
                ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD,
-                               ("odm_RateDown_8188E(): pRaInfo is NULL\n"));
+                               ("%s(): pRaInfo is NULL\n", __func__));
                return -1;
        }
        RateID = pRaInfo->PreRate;
@@ -180,7 +180,7 @@ static int odm_RateDown_8188E(struct odm_dm_struct *dm_odm,
        ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD,
                        ("Rate down to RateID %d RateSGI %d\n", RateID, 
pRaInfo->RateSGI));
        ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE,
-                       ("<===== odm_RateDown_8188E()\n"));
+                       ("<===== %s()\n", __func__));
        return 0;
 }
 
@@ -193,10 +193,10 @@ static int odm_RateUp_8188E(
        u8 i;
 
        ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE,
-                       ODM_DBG_TRACE, ("=====>odm_RateUp_8188E()\n"));
+                       ODM_DBG_TRACE, ("=====>%s()\n", __func__));
        if (!pRaInfo) {
                ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD,
-                               ("odm_RateUp_8188E(): pRaInfo is NULL\n"));
+                               ("%s(): pRaInfo is NULL\n", __func__));
                return -1;
        }
        RateID = pRaInfo->PreRate;
@@ -213,7 +213,7 @@ static int odm_RateUp_8188E(
        }
        odm_SetTxRPTTiming_8188E(dm_odm, pRaInfo, 0);
        ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD,
-                       ("odm_RateUp_8188E():Decrease RPT Timing\n"));
+                       ("%s():Decrease RPT Timing\n", __func__));
 
        if (RateID < HighestRate) {
                for (i = RateID+1; i <= HighestRate; i++) {
@@ -244,7 +244,7 @@ static int odm_RateUp_8188E(
                        ("RAWaitingCounter %d, RAPendingCounter %d",
                         pRaInfo->RAWaitingCounter, pRaInfo->RAPendingCounter));
        ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE,
-                       ODM_DBG_TRACE, ("<===== odm_RateUp_8188E()\n"));
+                       ODM_DBG_TRACE, ("<===== %s()\n", __func__));
        return 0;
 }
 
@@ -266,7 +266,7 @@ static void odm_RateDecision_8188E(struct odm_dm_struct 
*dm_odm,
        static u8 DynamicTxRPTTimingCounter;
 
        ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE,
-                       ("=====>odm_RateDecision_8188E()\n"));
+                       ("=====>%s()\n", __func__));
 
        if (pRaInfo->Active && (pRaInfo->TOTAL > 0)) { /*  STA used and data 
packet exits */
                if ((pRaInfo->RssiStaRA < (pRaInfo->PreRssiStaRA - 3)) ||
@@ -345,7 +345,8 @@ static void odm_RateDecision_8188E(struct odm_dm_struct 
*dm_odm,
 
                odm_ResetRaCounter_8188E(pRaInfo);
        }
-       ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE, ("<===== 
odm_RateDecision_8188E()\n"));
+       ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE,
+                    ("<===== %s()\n", __func__));
 }
 
 static int odm_ARFBRefresh_8188E(struct odm_dm_struct *dm_odm, struct 
odm_ra_info *pRaInfo)
@@ -533,7 +534,8 @@ odm_RATxRPTTimerSetting(
                u16 minRptTime
 )
 {
-       ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE, (" 
=====>odm_RATxRPTTimerSetting()\n"));
+       ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE,
+                    (" =====>%s()\n", __func__));
 
        if (dm_odm->CurrminRptTime != minRptTime) {
                ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD,
@@ -541,7 +543,8 @@ odm_RATxRPTTimerSetting(
                rtw_rpt_timer_cfg_cmd(dm_odm->Adapter, minRptTime);
                dm_odm->CurrminRptTime = minRptTime;
        }
-       ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE, (" <===== 
odm_RATxRPTTimerSetting()\n"));
+       ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE, ODM_DBG_TRACE,
+                    (" <===== %s()\n", __func__));
 }
 
 int ODM_RAInfo_Init(struct odm_dm_struct *dm_odm, u8 macid)
@@ -563,8 +566,8 @@ int ODM_RAInfo_Init(struct odm_dm_struct *dm_odm, u8 macid)
        }
 
        ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD,
-                    ("ODM_RAInfo_Init(): WirelessMode:0x%08x , 
max_raid_idx:0x%02x\n",
-                    WirelessMode, max_rate_idx));
+                    ("%s(): WirelessMode:0x%08x , max_raid_idx:0x%02x\n",
+                     __func__, WirelessMode, max_rate_idx));
 
        pRaInfo->DecisionRate = max_rate_idx;
        pRaInfo->PreRate = max_rate_idx;
@@ -694,8 +697,8 @@ void ODM_RA_TxRPT2Handle_8188E(struct odm_dm_struct 
*dm_odm, u8 *TxRPT_Buf, u16
        u16 minRptTime = 0x927c;
 
        ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD,
-                    ("=====>ODM_RA_TxRPT2Handle_8188E(): valid0 =%d valid1 =%d 
BufferLength =%d\n",
-                    macid_entry0, macid_entry1, TxRPT_Len));
+                    ("=====>%s(): valid0 =%d valid1 =%d BufferLength =%d\n",
+                     __func__, macid_entry0, macid_entry1, TxRPT_Len));
 
        ItemNum = TxRPT_Len >> 3;
        pBuffer = TxRPT_Buf;
@@ -769,5 +772,6 @@ void ODM_RA_TxRPT2Handle_8188E(struct odm_dm_struct 
*dm_odm, u8 *TxRPT_Buf, u16
 
        odm_RATxRPTTimerSetting(dm_odm, minRptTime);
 
-       ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD, ("<===== 
ODM_RA_TxRPT2Handle_8188E()\n"));
+       ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD,
+                    ("<===== %s()\n", __func__));
 }
-- 
2.19.2

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to