diff options
author | Aleksey Babahin <tamerlan311@gmail.com> | 2012-03-20 00:46:35 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-10 13:30:37 -0700 |
commit | bd2c09bc20c13eeb90cf185df9439e815302821d (patch) | |
tree | 44e3bbdba7c30f1347733962aa574091909b837e /drivers/usb/serial/metro-usb.c | |
parent | 91fbecfe59356a37d7e979cdd97f01c062fe1fda (diff) | |
download | op-kernel-dev-bd2c09bc20c13eeb90cf185df9439e815302821d.zip op-kernel-dev-bd2c09bc20c13eeb90cf185df9439e815302821d.tar.gz |
USB: serial: metro-usb: make debug messages bit more informative.
In this place result value is always zero. Use urb->status instead.
Signed-off-by: Aleksey Babahin <tamerlan311@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/metro-usb.c')
-rw-r--r-- | drivers/usb/serial/metro-usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/serial/metro-usb.c b/drivers/usb/serial/metro-usb.c index d9ae584..9723853 100644 --- a/drivers/usb/serial/metro-usb.c +++ b/drivers/usb/serial/metro-usb.c @@ -119,12 +119,12 @@ static void metrousb_read_int_callback(struct urb *urb) /* urb has been terminated. */ dev_dbg(&port->dev, "%s - urb shutting down, error code=%d\n", - __func__, result); + __func__, urb->status); return; default: dev_dbg(&port->dev, "%s - non-zero urb received, error code=%d\n", - __func__, result); + __func__, urb->status); goto exit; } |