minor: show USB error message instead of number
Change-Id: I272ac1be82b7432934969ea4d204dd20067d9428
This commit is contained in:
parent
206c3d7d0a
commit
6f074b787a
|
@ -465,7 +465,7 @@ static void run_mainloop(struct cardem_inst *ci)
|
|||
if (rc < 0 && rc != LIBUSB_ERROR_TIMEOUT &&
|
||||
rc != LIBUSB_ERROR_INTERRUPTED &&
|
||||
rc != LIBUSB_ERROR_IO) {
|
||||
fprintf(stderr, "BULK IN transfer error; rc=%d\n", rc);
|
||||
fprintf(stderr, "BULK IN transfer error: %s\n", libusb_error_name(rc));
|
||||
return;
|
||||
}
|
||||
/* dispatch any incoming data */
|
||||
|
|
Loading…
Reference in New Issue