From: Aleksey Babahin Date: Mon, 19 Mar 2012 20:46:35 +0000 (+0400) Subject: USB: serial: metro-usb: make debug messages bit more informative. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=bd2c09bc20c13eeb90cf185df9439e815302821d;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/metro-usb.c b/drivers/usb/serial/metro-usb.c index d9ae5841b1ab..97238536d30d 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; }