diff options
author | Jeremiah Mahler <jmmahler@gmail.com> | 2015-01-11 16:42:06 +0300 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2015-01-12 12:23:35 +0300 |
commit | aa8e22128b40590b291cd13512098bf258a7e6c5 (patch) | |
tree | 8f77b8b25adadeb68c6dbdaca1dbbf0fc4ff81c4 /drivers/usb/serial/generic.c | |
parent | 32a4bf2e81ec378e5925d4e069e0677a6c86a6ad (diff) | |
download | linux-aa8e22128b40590b291cd13512098bf258a7e6c5.tar.xz |
usb: serial: silence all non-critical read errors
If a USB serial device is unplugged while there is an active program
using the device it may spam the logs with -EPROTO (71) messages as it
attempts to retry.
Most serial usb drivers (metro-usb, pl2303, mos7840, ...) only output
these messages for debugging. The generic driver treats these as
errors.
Change the default output for the generic serial driver from error to
debug to silence these non-critical errors.
Signed-off-by: Jeremiah Mahler <jmmahler@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/generic.c')
-rw-r--r-- | drivers/usb/serial/generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c index 1bd192290b08..2d7207b9f6a4 100644 --- a/drivers/usb/serial/generic.c +++ b/drivers/usb/serial/generic.c @@ -373,7 +373,7 @@ void usb_serial_generic_read_bulk_callback(struct urb *urb) __func__, urb->status); return; default: - dev_err(&port->dev, "%s - nonzero urb status: %d\n", + dev_dbg(&port->dev, "%s - nonzero urb status: %d\n", __func__, urb->status); goto resubmit; } |