Commit eac7ac5c authored by Lourdes Pedrajas's avatar Lourdes Pedrajas Committed by Greg Kroah-Hartman

staging: rtl8192u: r8192U_wx: use netdev_warn() instead of printk()

printk() is deprecated, use netdev_warn() instead, which is a message printing
function specific for network devices.
Issue found by checkpatch.
Suggested-by: default avatarJulia Lawall <julia.lawall@inria.fr>
Suggested-by: default avatarStefano Brivio <sbrivio@redhat.com>
Signed-off-by: default avatarLourdes Pedrajas <lu@pplo.net>
Link: https://lore.kernel.org/r/20200317165917.6260-1-lu@pplo.netSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ba839b32
...@@ -588,7 +588,7 @@ static int r8192_wx_set_enc(struct net_device *dev, ...@@ -588,7 +588,7 @@ static int r8192_wx_set_enc(struct net_device *dev,
hwkey); /* KeyContent */ hwkey); /* KeyContent */
} else { } else {
printk("wrong type in WEP, not WEP40 and WEP104\n"); netdev_warn(dev, "wrong type in WEP, not WEP40 and WEP104\n");
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment