summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-09-11 13:47:07 +0200
committerHans de Goede <hdegoede@redhat.com>2012-09-11 13:47:07 +0200
commit4b5d1381c3b18c5c6e33b727d83a70448c176a92 (patch)
tree3633a71bbc5ddc53f38638ade944ab41a990a79d
parent8b29d8588de54a3a406a004c69c231af491cadd9 (diff)
libusbredirhost: Don't call libusb_error_name() on transfer status codes
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--usbredirhost/usbredirhost.c6
1 files 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;
}