use MACRO __func__ instead of "phy_set_rf8256_bandwidth" for RT_TRACE()
inside phy_set_rf8256_bandwidth(), reported by scripts/checkpatch.pl.

Signed-off-by: Du Cheng <duche...@gmail.com>
---
changes v3:
* break up changes into 3 patches

changes v2:
* improve description

changes v1:
* fix coding style

 drivers/staging/rtl8192u/r8190_rtl8256.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8192u/r8190_rtl8256.c 
b/drivers/staging/rtl8192u/r8190_rtl8256.c
index fee3bfb99075..7294a3fbe205 100644
--- a/drivers/staging/rtl8192u/r8190_rtl8256.c
+++ b/drivers/staging/rtl8192u/r8190_rtl8256.c
@@ -73,11 +73,11 @@ void phy_set_rf8256_bandwidth(struct net_device *dev, enum 
ht_channel_width Band
                                        else
                                                rtl8192_phy_SetRFReg(dev, (enum 
rf90_radio_path_e)eRFPath, 0x14, bMask12Bits, 0x5ab);
                                } else {
-                                       RT_TRACE(COMP_ERR, 
"phy_set_rf8256_bandwidth(): unknown hardware version\n");
+                                       RT_TRACE(COMP_ERR, "%s(): unknown 
hardware version\n", __func__);
                                        }
                                break;
                default:
-                               RT_TRACE(COMP_ERR, "phy_set_rf8256_bandwidth(): 
unknown Bandwidth: %#X\n", Bandwidth);
+                               RT_TRACE(COMP_ERR, "%s(): unknown Bandwidth: 
%#X\n", __func__, Bandwidth);
                                break;
                }
        }
-- 
2.27.0

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

Reply via email to