]> git.zerfleddert.de Git - hmcfgusb/commitdiff
show textual error
authorMichael Gernoth <michael@gernoth.net>
Sat, 13 Jul 2013 16:36:32 +0000 (18:36 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sat, 13 Jul 2013 16:36:32 +0000 (18:36 +0200)
hmcfgusb.c

index 825b3132a3bbc660d37ef6a41259fbc7b785d6e7..d08641935f41f0f9d84d1079bcb4edd047bcc01d 100644 (file)
@@ -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) {
Impressum, Datenschutz