xhci: Add completion code to the debug ouput of unhandled transfer events
authorMathias Nyman <mathias.nyman@linux.intel.com>
Fri, 9 Jan 2015 14:06:32 +0000 (16:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jan 2015 18:05:47 +0000 (10:05 -0800)
Helps debugging to know the unhandled event type.
Also make the debug message grepable

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c

index 067f18a..88da8d6 100644 (file)
@@ -2354,8 +2354,8 @@ static int handle_tx_event(struct xhci_hcd *xhci,
                        status = 0;
                        break;
                }
-               xhci_warn(xhci, "ERROR Unknown event condition, HC probably "
-                               "busted\n");
+               xhci_warn(xhci, "ERROR Unknown event condition %u, HC probably busted\n",
+                         trb_comp_code);
                goto cleanup;
        }