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

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.net


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ba839b32
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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");
		}

	}