Browse Source

minor: show USB error message instead of number

Change-Id: I272ac1be82b7432934969ea4d204dd20067d9428
changes/54/11754/1
Kevin Redon 4 years ago
parent
commit
6f074b787a
  1. 2
      src/simtrace2-remsim_client.c

2
src/simtrace2-remsim_client.c

@ -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…
Cancel
Save