Skip to contentSkip to conversation

Staging: rtlwifi: rtl8822be: Use __func__ instead of func name

RFC In review Bhanusree Pola 2 participants 2 messages Feb 25, 2019 Staging

lore
Share & tools
lore
#0 lore raw

RFC 1/1 Staging: rtlwifi: rtl8822be: Use __func__ instead of func name

Fix checkpatch warning:
WARNING: Prefer using '"%s...", __func__' to using 'rtl8822be_set_fw_rsvdpagepkt', this function's name, in a string

Use __func__ instead of using complete function name. Avoid line over 80 characters

---
 drivers/staging/rtlwifi/rtl8822be/fw.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtlwifi/rtl8822be/fw.c +2 -2
index f061dd1382aa..43a56962e37a 100644
@@ -736,10 +736,10 @@ void rtl8822be_set_fw_rsvdpagepkt(struct ieee80211_hw *hw, bool b_dl_finished)
 	totalpacketlen = TOTAL_RESERVED_PKT_LEN;
 
 	RT_PRINT_DATA(rtlpriv, COMP_CMD, DBG_LOUD,
-		      "rtl8822be_set_fw_rsvdpagepkt(): HW_VAR_SET_TX_CMD: ALL\n",
+		      ("%s: HW_VAR_SET_TX_CMD: ALL\n", __func__),
 		      &reserved_page_packet[0], totalpacketlen);
 	RT_PRINT_DATA(rtlpriv, COMP_CMD, DBG_LOUD,
-		      "rtl8822be_set_fw_rsvdpagepkt(): HW_VAR_SET_TX_CMD: ALL\n",
+		      ("%s: HW_VAR_SET_TX_CMD: ALL\n", __func__),
 		      u1_rsvd_page_loc, 3);
 
 	skb = dev_alloc_skb(totalpacketlen);
Signature · 1 line
2.17.1
#1 lore raw
Quoted 10 lines · Bhanusree Pola

Fix checkpatch warning:
WARNING: Prefer using '"%s...", __func__' to using 'rtl8822be_set_fw_rsvdpagepkt', this function's name, in a string

Use __func__ instead of using complete function name. Avoid line over 80 characters

---
 drivers/staging/rtlwifi/rtl8822be/fw.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Why is this a "RFC"?

Personally, I ignore those types of patches as the author obviously doesn't think they are good enough to be applied :)

thanks,

greg k-h