staging: rtl8192u: r8192U_wx: use netdev_warn() instead of printk()
authorLourdes Pedrajas <lu@pplo.net>
Tue, 17 Mar 2020 16:59:17 +0000 (17:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2020 10:12:49 +0000 (11:12 +0100)
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>
Link: https://lore.kernel.org/r/20200317165917.6260-1-lu@pplo.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_wx.c

index 0118edb..1005325 100644 (file)
@@ -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");
                }
 
        }