tnt has submitted this change. ( https://gerrit.osmocom.org/c/osmo-e1d/+/26821 )
Change subject: usb: Use libusb_status_str when logging INT EP error ......................................................................
usb: Use libusb_status_str when logging INT EP error
Change-Id: I3a3cd88ba35796740dbd399eb618617941dae54a --- M src/usb.c 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: Jenkins Builder: Verified tnt: Looks good to me, approved
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; }