[PATCH] staging/rtl8192u/ieee80211: use __func__ macro

Elena Afanasova eafanasova at gmail.com
Tue Oct 20 15:26:45 UTC 2020


On Tue, 2020-10-20 at 17:19 +0200, Greg KH wrote:
> On Tue, Oct 20, 2020 at 08:08:23AM -0700, Elena Afanasova wrote:
> > Replace function names with __func__ macro.
> > Remove unnecessary characters in error messages.
> > Reported by checkpatch.pl.
> > 
> > Signed-off-by: Elena Afanasova <eafanasova at gmail.com>
> > ---
> >  drivers/staging/rtl8192u/ieee80211/dot11d.c | 12 ++++++------
> >  1 file changed, 6 insertions(+), 6 deletions(-)
> > 
> > diff --git a/drivers/staging/rtl8192u/ieee80211/dot11d.c
> > b/drivers/staging/rtl8192u/ieee80211/dot11d.c
> > index bc642076b96f..f972edcde8a0 100644
> > --- a/drivers/staging/rtl8192u/ieee80211/dot11d.c
> > +++ b/drivers/staging/rtl8192u/ieee80211/dot11d.c
> > @@ -15,7 +15,7 @@ void rtl8192u_dot11d_init(struct ieee80211_device
> > *ieee)
> >  	memset(dot11d_info->max_tx_pwr_dbm_list, 0xFF,
> > MAX_CHANNEL_NUMBER + 1);
> >  	RESET_CIE_WATCHDOG(ieee);
> >  
> > -	netdev_info(ieee->dev, "rtl8192u_dot11d_init()\n");
> > +	netdev_info(ieee->dev, "%s\n", __func__);
> 
> This is a pure debugging line, and should just be removed.  Can you
> do
> that as an add-on patch to this?

ok
> 
> thanks,
> 
> greg k-h



More information about the devel mailing list