tnt submitted this change.
usb: Use libusb_status_str when logging INT EP error
Change-Id: I3a3cd88ba35796740dbd399eb618617941dae54a
---
M src/usb.c
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/usb.c b/src/usb.c
index 8124f26..0c0afe4 100644
--- a/src/usb.c
+++ b/src/usb.c
@@ -375,7 +375,8 @@
const struct ice1usb_irq *irq = (const struct ice1usb_irq *) xfer->buffer;
if (xfer->status != LIBUSB_TRANSFER_COMPLETED) {
- LOGPLI(line, DE1D, LOGL_ERROR, "Error in Interrupt transfer\n");
+ LOGPLI(line, DE1D, LOGL_ERROR, "INT EP %02x transfer failed with status %s\n",
+ xfer->endpoint, get_value_string(libusb_status_str, xfer->status));
goto out;
}
To view, visit change 26821. To unsubscribe, or for help writing mail filters, visit settings.