[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180702084133.GA25960@kroah.com>
Date: Mon, 2 Jul 2018 10:41:33 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: John Whitmore <johnfwhitmore@...il.com>
Cc: devel@...verdev.osuosl.org, kstewart@...uxfoundation.org,
linux-kernel@...r.kernel.org, pombredanne@...b.com,
tglx@...utronix.de
Subject: Re: [PATCH 1/3] staging: rtl8192u: Use __func__ instead of hardcoded
string - Style
On Fri, Jun 29, 2018 at 07:10:05PM +0100, John Whitmore wrote:
> Chnaged logging statements to use %s and __func__ instead of hard coding the
> function name in a string.
>
> Signed-off-by: John Whitmore <johnfwhitmore@...il.com>
> ---
> drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c
> index 1dd4c6ae7319..a4fbc0435de5 100644
> --- a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c
> +++ b/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c
> @@ -534,7 +534,7 @@ void HTConstructCapabilityElement(struct ieee80211_device *ieee, u8 *posHTCap, u
> //u8 bIsDeclareMCS13;
>
> if (!posHTCap || !pHT) {
> - IEEE80211_DEBUG(IEEE80211_DL_ERR, "posHTCap or pHTInfo can't be null in HTConstructCapabilityElement()\n");
> + IEEE80211_DEBUG(IEEE80211_DL_ERR, "posHTCap or pHTInfo can't be null in %s\n", __func__);
You should properly line-wrap thse lines, otherwise you will have to go
back and fix them after this patch.
thanks,
greg k-h
Powered by blists - more mailing lists