All of lore.kernel.org
 help / color / mirror / Atom feed
From: =?gb18030?B?1cXK98jZ?= <zhang_shurong@foxmail.com>
To: =?gb18030?B?R3JlZyBLcm9haC1IYXJ0bWFu?= <gregkh@linuxfoundation.org>
Cc: =?gb18030?B?ZGV2ZWw=?= <devel@driverdev.osuosl.org>,
	=?gb18030?B?bGludXgta2VybmVs?= <linux-kernel@vger.kernel.org>
Subject: [PATCH] staging: rtl8192e: Change fixed function names with "%s: ",__func__
Date: Fri, 18 Aug 2017 23:53:41 +0800	[thread overview]
Message-ID: <tencent_29C2153575842F094E9BFBD0@qq.com> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 1211 bytes --]

From: Shurong Zhang <zhang_shurong@foxmail.com>

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

Signed-off-by: Shurong Zhang <zhang_shurong@foxmail.com>
---
 drivers/staging/rtl8192e/dot11d.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8192e/dot11d.c b/drivers/staging/rtl8192e/dot11d.c
index 017fe04..be78db1 100644
--- a/drivers/staging/rtl8192e/dot11d.c
+++ b/drivers/staging/rtl8192e/dot11d.c
@@ -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;
 	}
 
-- 
2.7.4

             reply	other threads:[~2017-08-18 16:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-18 15:53 =?gb18030?B?1cXK98jZ?= [this message]
2017-08-20 18:12 ` [PATCH] staging: rtl8192e: Change fixed function names with "%s: ", __func__ Greg Kroah-Hartman
     [not found] <20170821133235.GA10327@MarvinZhang.kernel@gmail.com>
2017-08-23  1:32 ` [PATCH] staging: rtl8192e: Change fixed function names with "%s:", __func__ Greg Kroah-Hartman
     [not found] <5982807a.09b46b0a.6bc9e.bddbSMTPIN_ADDED_BROKEN@mx.google.com>
2017-08-17 17:59 ` [PATCH] staging: rtl8192e: Change fixed function names with "%s: ", __func__ Greg Kroah-Hartman
     [not found] <59821324.87ecca0a.2ff91.285fSMTPIN_ADDED_BROKEN@mx.google.com>
2017-08-02 18:02 ` Greg Kroah-Hartman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tencent_29C2153575842F094E9BFBD0@qq.com \
    --to=zhang_shurong@foxmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.