minor: show USB error message instead of number

Change-Id: I272ac1be82b7432934969ea4d204dd20067d9428
This commit is contained in:
Kevin Redon 2018-11-12 22:53:48 +01:00
parent 206c3d7d0a
commit 6f074b787a
1 changed files with 1 additions and 1 deletions

View File

@ -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 */