Skip to content

Commit 4d8c79b

Browse files
grundlerchromiumdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 492bbe7 commit 4d8c79b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/usb/usbnet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ int usbnet_open (struct net_device *net)
887887

888888
// insist peer be connected
889889
if (info->check_connect && (retval = info->check_connect (dev)) < 0) {
890-
netif_dbg(dev, ifup, dev->net, "can't open; %d\n", retval);
890+
netif_err(dev, ifup, dev->net, "can't open; %d\n", retval);
891891
goto done;
892892
}
893893

0 commit comments

Comments
 (0)