[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <60af3294445ba2d2289a32ef7e429111ff476b44.camel@perches.com>
Date: Wed, 12 Oct 2022 20:08:58 -0700
From: Joe Perches <joe@...ches.com>
To: Sasha Levin <sashal@...nel.org>, linux-kernel@...r.kernel.org,
stable@...r.kernel.org
Cc: Michael Straube <straube.linux@...il.com>,
Philipp Hortmann <philipp.g.hortmann@...il.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Larry.Finger@...inger.net, phil@...lpotter.co.uk, martin@...ser.cx,
paskripkin@...il.com, gszymaszek@...rt.pl, fmdefrancesco@...il.com,
makvihas@...il.com, saurav.girepunje@...il.com,
linux-staging@...ts.linux.dev
Subject: Re: [PATCH AUTOSEL 5.19 01/63] staging: r8188eu: do not spam the
kernel log
On Wed, 2022-10-12 at 20:17 -0400, Sasha Levin wrote:
> From: Michael Straube <straube.linux@...il.com>
>
> [ Upstream commit 9a4d0d1c21b974454926c3b832b4728679d818eb ]
>
> Drivers should not spam the kernel log if they work properly. Convert
> the functions Hal_EfuseParseIDCode88E() and _netdev_open() to use
> netdev_dbg() instead of pr_info() so that developers can still enable
> it if they want to see this information.
Why should this be backported?
> diff --git a/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c b/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c
[]
> @@ -676,6 +676,7 @@ Hal_EfuseParseIDCode88E(
> )
> {
> struct eeprom_priv *pEEPROM = &padapter->eeprompriv;
> + struct net_device *netdev = padapter->pnetdev;
> u16 EEPROMId;
>
> /* Check 0x8129 again for making sure autoload status!! */
> @@ -687,7 +688,7 @@ Hal_EfuseParseIDCode88E(
> pEEPROM->bautoload_fail_flag = false;
> }
>
> - pr_info("EEPROM ID = 0x%04x\n", EEPROMId);
> + netdev_dbg(netdev, "EEPROM ID = 0x%04x\n", EEPROMId);
> }
>
> static void Hal_ReadPowerValueFromPROM_8188E(struct txpowerinfo24g *pwrInfo24G, u8 *PROMContent, bool AutoLoadFail)
> diff --git a/drivers/staging/r8188eu/os_dep/os_intfs.c b/drivers/staging/r8188eu/os_dep/os_intfs.c
[]
> @@ -636,7 +636,7 @@ int _netdev_open(struct net_device *pnetdev)
> if (status == _FAIL)
> goto netdev_open_error;
>
> - pr_info("MAC Address = %pM\n", pnetdev->dev_addr);
> + netdev_dbg(pnetdev, "MAC Address = %pM\n", pnetdev->dev_addr);
>
> status = rtw_start_drv_threads(padapter);
> if (status == _FAIL) {
Powered by blists - more mailing lists