lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 18 Aug 2017 23:53:41 +0800
From:   "张树荣" <zhang_shurong@...mail.com>
To:     "Greg Kroah-Hartman" <gregkh@...uxfoundation.org>
Cc:     "devel" <devel@...verdev.osuosl.org>,
        "linux-kernel" <linux-kernel@...r.kernel.org>
Subject: [PATCH] staging: rtl8192e: Change fixed function names with "%s: ",__func__

From: Shurong Zhang <zhang_shurong@...mail.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@...mail.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ