diff options
author | Grant Grundler <grundler@chromium.org> | 2021-03-06 14:12:32 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-08 11:54:32 -0800 |
commit | 4d8c79b7e9ff05030aad68421f7584b129933ba6 (patch) | |
tree | 52ea0c6faad2fe8dba5b703dfa8ef5c229135c49 /drivers/net/usb | |
parent | 492bbe7f8a43ff20bb9bfc6b98220dcfb7e5992f (diff) | |
download | linux-4d8c79b7e9ff05030aad68421f7584b129933ba6.tar.bz2 |
net: usb: log errors to dmesg/syslog
Errors in protocol should be logged when the driver aborts operations.
If the driver can carry on and "humor" the device, then emitting
the message as debug output level is fine.
Signed-off-by: Grant Grundler <grundler@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/usbnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index b4c8080e6f87..f4f37ecfed58 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c @@ -887,7 +887,7 @@ int usbnet_open (struct net_device *net) // insist peer be connected if (info->check_connect && (retval = info->check_connect (dev)) < 0) { - netif_dbg(dev, ifup, dev->net, "can't open; %d\n", retval); + netif_err(dev, ifup, dev->net, "can't open; %d\n", retval); goto done; } |