diff options
author | Grant Grundler <grundler@chromium.org> | 2021-03-06 23:12:32 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-08 20:54:32 +0100 |
commit | 4d8c79b7e9ff05030aad68421f7584b129933ba6 (patch) | |
tree | 52ea0c6faad2fe8dba5b703dfa8ef5c229135c49 /drivers | |
parent | net: usb: cdc_ncm: emit dev_err on error paths (diff) | |
download | linux-4d8c79b7e9ff05030aad68421f7584b129933ba6.tar.xz linux-4d8c79b7e9ff05030aad68421f7584b129933ba6.zip |
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')
-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; } |