From 032d60505d30c95e5a01d652c728ccca7ddbf0ab Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sat, 13 Jul 2013 18:36:32 +0200 Subject: [PATCH 1/1] show textual error --- hmcfgusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hmcfgusb.c b/hmcfgusb.c index 825b313..d086419 100644 --- a/hmcfgusb.c +++ b/hmcfgusb.c @@ -242,7 +242,7 @@ static void LIBUSB_CALL hmcfgusb_interrupt(struct libusb_transfer *transfer) if (transfer->status != LIBUSB_TRANSFER_COMPLETED) { if (transfer->status != LIBUSB_TRANSFER_TIMED_OUT) { - fprintf(stderr, "Interrupt transfer not completed: %d!\n", transfer->status); + fprintf(stderr, "Interrupt transfer not completed: %s!\n", usb_strerror(transfer->status)); quit = EIO; if (cb_data && cb_data->dev && cb_data->dev->transfer) { -- 2.39.5