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>
This commit is contained in:
Aleksey Babahin 2012-03-20 00:46:35 +04:00 committed by Greg Kroah-Hartman
parent 91fbecfe59
commit bd2c09bc20
1 changed files with 2 additions and 2 deletions

View 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;
}