* [PATCH v6] staging: rtl8192u: r8192U_wx: use netdev_warn() instead of printk()
@ 2020-03-17 16:59 Lourdes Pedrajas
2020-03-18 10:14 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Lourdes Pedrajas @ 2020-03-17 16:59 UTC (permalink / raw)
To: outreachy-kernel, gregkh
printk() is deprecated, use netdev_warn() instead, which is a message printing
function specific for network devices.
Issue found by checkpatch.
Suggested-by: Julia Lawall <julia.lawall@inria.fr>
Suggested-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Lourdes Pedrajas <lu@pplo.net>
---
Changes since v5:
- Subject correction.
drivers/staging/rtl8192u/r8192U_wx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8192u/r8192U_wx.c b/drivers/staging/rtl8192u/r8192U_wx.c
index 0118edb0b9ab..100532598781 100644
--- a/drivers/staging/rtl8192u/r8192U_wx.c
+++ b/drivers/staging/rtl8192u/r8192U_wx.c
@@ -588,7 +588,7 @@ static int r8192_wx_set_enc(struct net_device *dev,
hwkey); /* KeyContent */
} else {
- printk("wrong type in WEP, not WEP40 and WEP104\n");
+ netdev_warn(dev, "wrong type in WEP, not WEP40 and WEP104\n");
}
}
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v6] staging: rtl8192u: r8192U_wx: use netdev_warn() instead of printk()
2020-03-17 16:59 [PATCH v6] staging: rtl8192u: r8192U_wx: use netdev_warn() instead of printk() Lourdes Pedrajas
@ 2020-03-18 10:14 ` Greg KH
2020-03-18 17:37 ` Lourdes Pedrajas
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2020-03-18 10:14 UTC (permalink / raw)
To: Lourdes Pedrajas; +Cc: outreachy-kernel
On Tue, Mar 17, 2020 at 05:59:17PM +0100, Lourdes Pedrajas wrote:
> printk() is deprecated, use netdev_warn() instead, which is a message printing
> function specific for network devices.
> Issue found by checkpatch.
>
> Suggested-by: Julia Lawall <julia.lawall@inria.fr>
> Suggested-by: Stefano Brivio <sbrivio@redhat.com>
> Signed-off-by: Lourdes Pedrajas <lu@pplo.net>
> ---
> Changes since v5:
> - Subject correction.
Thanks for sticking with this.
One further note, you should list _all_ the changes that have happened
over the series, v1-v6, in this list. That makes it more obvious what
has happened over time.
I've queued this patch up now, no need to do it this time.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v6] staging: rtl8192u: r8192U_wx: use netdev_warn() instead of printk()
2020-03-18 10:14 ` Greg KH
@ 2020-03-18 17:37 ` Lourdes Pedrajas
0 siblings, 0 replies; 3+ messages in thread
From: Lourdes Pedrajas @ 2020-03-18 17:37 UTC (permalink / raw)
To: Greg KH; +Cc: outreachy-kernel
On Wed, Mar 18, 2020 at 11:14:39AM +0100, Greg KH wrote:
> On Tue, Mar 17, 2020 at 05:59:17PM +0100, Lourdes Pedrajas wrote:
> > printk() is deprecated, use netdev_warn() instead, which is a message printing
> > function specific for network devices.
> > Issue found by checkpatch.
> >
> > Suggested-by: Julia Lawall <julia.lawall@inria.fr>
> > Suggested-by: Stefano Brivio <sbrivio@redhat.com>
> > Signed-off-by: Lourdes Pedrajas <lu@pplo.net>
> > ---
> > Changes since v5:
> > - Subject correction.
>
> Thanks for sticking with this.
>
> One further note, you should list _all_ the changes that have happened
> over the series, v1-v6, in this list. That makes it more obvious what
> has happened over time.
>
> I've queued this patch up now, no need to do it this time.
>
> thanks,
>
> greg k-h
I will do so from now! :)
Thank you,
Lourdes
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-03-18 17:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-17 16:59 [PATCH v6] staging: rtl8192u: r8192U_wx: use netdev_warn() instead of printk() Lourdes Pedrajas
2020-03-18 10:14 ` Greg KH
2020-03-18 17:37 ` Lourdes Pedrajas
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.