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;
}
--
To view, visit
https://gerrit.osmocom.org/c/osmo-e1d/+/26821
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: I3a3cd88ba35796740dbd399eb618617941dae54a
Gerrit-Change-Number: 26821
Gerrit-PatchSet: 3
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: tnt <tnt(a)246tNt.com>
Gerrit-MessageType: merged