staging: rtlwifi: rtl8822be: Use __func__ instead of hardcoded name
authorFrank A. Cancio Bello <frank@generalsoftwareinc.com>
Wed, 18 Oct 2017 03:33:06 +0000 (23:33 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2017 13:33:15 +0000 (15:33 +0200)
Switch hardcoded function name with a reference to __func__ making
the code more maintenable and addressing the checkpatch warning:

WARNING: Prefer using '"%s...", __func__' to using 'rtl8822be_sc_mapping', this function's name, in a string
+                                       "rtl8822be_sc_mapping: Not Correct Primary40MHz Setting\n");

Credits to checkpatch.

Signed-off-by: Frank A. Cancio Bello <frank@generalsoftwareinc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtlwifi/rtl8822be/trx.c

index 38f80e48a399b4cbafa764829f5e8cbc059ee942..54f65f35474b397d62c5165e1ea292cc318bd207 100644 (file)
@@ -571,9 +571,9 @@ static u8 rtl8822be_sc_mapping(struct ieee80211_hw *hw,
                                sc_setting_of_desc =
                                        VHT_DATA_SC_20_UPPERST_OF_80MHZ;
                        else
-                               RT_TRACE(
-                                       rtlpriv, COMP_SEND, DBG_LOUD,
-                                       "rtl8822be_sc_mapping: Not Correct Primary40MHz Setting\n");
+                               RT_TRACE(rtlpriv, COMP_SEND, DBG_LOUD,
+                                        "%s: Not Correct Primary40MHz Setting\n",
+                                        __func__);
                }
        } else if (rtlphy->current_chan_bw == HT_CHANNEL_WIDTH_20_40) {
                if (ptcb_desc->packet_bw == HT_CHANNEL_WIDTH_20_40) {