Skip to contentSkip to conversation

staging: rtl8192e: Change fixed function names with "%s: ",__func__

PATCH In review 张树荣 2 participants 2 messages Aug 18, 2017 – Aug 20, 2017 Staging

lore
Share & tools
lore

张树荣

author
#0 lore raw

PATCH 1/1 staging: rtl8192e: Change fixed function names with "%s: ",__func__

From: Shurong Zhang <[email protected]>

Replace hard-coded function names in strings with "%s", __func__
in the dot11d.c file. Issue found by checkpatch.pl.

---
 drivers/staging/rtl8192e/dot11d.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/dot11d.c +2 -2
index 017fe04..be78db1 100644
@@ -128,12 +128,12 @@ void Dot11d_UpdateCountryIe(struct rtllib_device *dev, u8 *pTaddr,
 	pTriple = (struct chnl_txpow_triple *)(pCoutryIe + 3);
 	for (i = 0; i < NumTriples; i++) {
 	if (MaxChnlNum >= pTriple->FirstChnl) {
-	netdev_info(dev->dev, "Dot11d_UpdateCountryIe(): Invalid country IE, skip it........1\n");
+	netdev_info(dev->dev, "%s(): Invalid country IE, skip it........1\n",__func__);
 	return;
 	}
 	if (MAX_CHANNEL_NUMBER < (pTriple->FirstChnl +
 	    pTriple->NumChnls)) {
-	netdev_info(dev->dev, "Dot11d_UpdateCountryIe(): Invalid country IE, skip it........2\n");
+	netdev_info(dev->dev, "%s(): Invalid country IE, skip it........2\n",__func__);
 	return;
 	}
 
Signature · 1 line
2.7.4
#1 lore raw

Re: [PATCH] staging: rtl8192e: Change fixed function names with "%s: ", __func__

Quoted 9 lines · 张树荣

From: Shurong Zhang <[email protected]>

Replace hard-coded function names in strings with "%s", __func__
in the dot11d.c file. Issue found by checkpatch.pl.

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

This patch doesn't apply at all, are you sure you generated it correctly?

thanks,

greg k-h