USB: serial: metro-usb: make debug messages bit more informative.
authorAleksey Babahin <tamerlan311@gmail.com>
Mon, 19 Mar 2012 20:46:35 +0000 (00:46 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Apr 2012 20:30:37 +0000 (13:30 -0700)
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>
drivers/usb/serial/metro-usb.c

index d9ae5841b1ab33caba766dbf9e464c453fd07b9a..97238536d30d526f05d1cbfe71b521340b5d8dbc 100644 (file)
@@ -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;
        }