Message ID | f5ceeb63-bfd2-0fe5-c88b-2bc4c9c7c46a@gmail.com |
---|---|
State | Superseded |
Headers | show |
Series | [v3,1/5] wifi: rtl8xxxu: Add central frequency offset tracking | expand |
> -----Original Message----- > From: Bitterblue Smith <rtl8821cerfe2@gmail.com> > Sent: Saturday, October 29, 2022 12:40 AM > To: linux-wireless@vger.kernel.org > Cc: Jes Sorensen <Jes.Sorensen@gmail.com> > Subject: [PATCH v3 5/5] wifi: rtl8xxxu: Use dev_info instead of pr_info > > Replace two instances of bare pr_info with dev_info. > > Also make their messages a little more informative. > > Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com> Reviewed-by: Ping-Ke Shih <pkshih@realtek.com> > --- > v3: > - No change. > > v2: > - No change. > --- [...]
Bitterblue Smith <rtl8821cerfe2@gmail.com> writes: > Replace two instances of bare pr_info with dev_info. > > Also make their messages a little more informative. > > Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com> [...] > @@ -5420,7 +5421,8 @@ static void rtl8xxxu_rx_urb_work(struct work_struct *work) > rtl8xxxu_queue_rx_urb(priv, rx_urb); > break; > default: > - pr_info("failed to requeue urb %i\n", ret); > + dev_info(&priv->udev->dev, > + "failed to requeue urb with error %i\n", ret); Should this be dev_warn()? It looks like a warning.
On 01/11/2022 13:11, Kalle Valo wrote: > Bitterblue Smith <rtl8821cerfe2@gmail.com> writes: > >> Replace two instances of bare pr_info with dev_info. >> >> Also make their messages a little more informative. >> >> Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com> > > [...] > >> @@ -5420,7 +5421,8 @@ static void rtl8xxxu_rx_urb_work(struct work_struct *work) >> rtl8xxxu_queue_rx_urb(priv, rx_urb); >> break; >> default: >> - pr_info("failed to requeue urb %i\n", ret); >> + dev_info(&priv->udev->dev, >> + "failed to requeue urb with error %i\n", ret); > > Should this be dev_warn()? It looks like a warning. > Probably yes. I'll do that and also rebase everything.
diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index 57800c3575b4..e86553b8fa3d 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -2015,7 +2015,8 @@ static int rtl8xxxu_download_firmware(struct rtl8xxxu_priv *priv) val8 = rtl8xxxu_read8(priv, REG_MCU_FW_DL); if (val8 & MCU_FW_RAM_SEL) { - pr_info("do the RAM reset\n"); + dev_info(&priv->udev->dev, + "Firmware is already running, resetting the MCU.\n"); rtl8xxxu_write8(priv, REG_MCU_FW_DL, 0x00); priv->fops->reset_8051(priv); } @@ -5420,7 +5421,8 @@ static void rtl8xxxu_rx_urb_work(struct work_struct *work) rtl8xxxu_queue_rx_urb(priv, rx_urb); break; default: - pr_info("failed to requeue urb %i\n", ret); + dev_info(&priv->udev->dev, + "failed to requeue urb with error %i\n", ret); skb = (struct sk_buff *)rx_urb->urb.context; dev_kfree_skb(skb); usb_free_urb(&rx_urb->urb);
Replace two instances of bare pr_info with dev_info. Also make their messages a little more informative. Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com> --- v3: - No change. v2: - No change. --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)