From: Michael Gernoth Date: Sat, 13 Jul 2013 16:36:32 +0000 (+0200) Subject: show textual error X-Git-Tag: v0.100~59 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/commitdiff_plain/032d60505d30c95e5a01d652c728ccca7ddbf0ab?ds=sidebyside show textual error --- 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) {