All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] staging: rtl8192u: r8192U_wx: use netdev_warn() instead of printk()
@ 2020-03-10 21:26 Lourdes Pedrajas
  2020-03-10 21:40 ` [Outreachy kernel] " Julia Lawall
  2020-03-10 21:43 ` Stefano Brivio
  0 siblings, 2 replies; 8+ messages in thread
From: Lourdes Pedrajas @ 2020-03-10 21:26 UTC (permalink / raw)
  To: outreachy-kernel, gregkh

printk() is deprecated, use netdev_warn() instead, which is a message printing
function for network devices, defined in include/linux/netdevice.h.
Issue found by checkpatch.

Signed-off-by: Lourdes Pedrajas <lu@pplo.net>
---
Changes since v1:
 - Replace message printing function pr_warn with network devices
   specific, netdev_warn()

 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..58c1a8da7a8d 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("wrong type in WEP, not WEP40 and WEP104\n");
 		}
 
 	}
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-03-11 18:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-10 21:26 [PATCH v2] staging: rtl8192u: r8192U_wx: use netdev_warn() instead of printk() Lourdes Pedrajas
2020-03-10 21:40 ` [Outreachy kernel] " Julia Lawall
2020-03-10 21:43 ` Stefano Brivio
2020-03-10 22:10   ` Lourdes Pedrajas
2020-03-10 22:15     ` Stefano Brivio
2020-03-10 22:28       ` Lourdes Pedrajas
2020-03-11 11:22         ` Stefano Brivio
2020-03-11 18:15           ` 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.