From 4b5d1381c3b18c5c6e33b727d83a70448c176a92 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Tue, 11 Sep 2012 13:47:07 +0200 Subject: libusbredirhost: Don't call libusb_error_name() on transfer status codes Signed-off-by: Hans de Goede --- usbredirhost/usbredirhost.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/usbredirhost/usbredirhost.c b/usbredirhost/usbredirhost.c index 02f6463..0080da8 100644 --- a/usbredirhost/usbredirhost.c +++ b/usbredirhost/usbredirhost.c @@ -1033,8 +1033,7 @@ static int usbredirhost_handle_iso_status(struct usbredirhost *host, case LIBUSB_TRANSFER_ERROR: case LIBUSB_TRANSFER_TIMED_OUT: default: - ERROR("iso stream error on endpoint %02X: %s", ep, - libusb_error_name(r)); + ERROR("iso stream error on endpoint %02X: %d", ep, r); return 1; } } @@ -1340,8 +1339,7 @@ static void LIBUSB_CALL usbredirhost_interrupt_packet_complete( host->endpoint[EP2I(ep)].interrupt_in_transfer = NULL; goto unlock; default: - ERROR("interrupt in error on endpoint %02X: %s", - ep, libusb_error_name(r)); + ERROR("interrupt in error on endpoint %02X: %d", ep, r); len = 0; } -- cgit v1.2.3