summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-07-06 14:25:48 +0200
committerHans de Goede <hdegoede@redhat.com>2012-07-06 14:25:48 +0200
commitcb74b3113076d6e18c799a0c73978e1aea32bad0 (patch)
tree512efc0e7e1c66d8d73a1a14b77af83e9c5d901d
parent7783d3db61083bbf7f61b1ea8608c666b4c6a1dd (diff)
usbredirhost: Properly log an error when the initial device reset fails
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--TODO1
-rw-r--r--usbredirhost/usbredirhost.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/TODO b/TODO
index e6715b1..2085006 100644
--- a/TODO
+++ b/TODO
@@ -4,3 +4,4 @@
* cancel pending packets / active streams before reset?
* add a queue_buf call to parser, use it in host to avoid memcpy of
"in" bulk transfers
+* use libusb strerror equivalent instead of numeric error codes in logs
diff --git a/usbredirhost/usbredirhost.c b/usbredirhost/usbredirhost.c
index be75f87..2415c26 100644
--- a/usbredirhost/usbredirhost.c
+++ b/usbredirhost/usbredirhost.c
@@ -707,6 +707,7 @@ int usbredirhost_set_device(struct usbredirhost *host,
so lets do that before hand */
r = libusb_reset_device(host->handle);
if (r != 0) {
+ ERROR("resetting device: %d", r);
usbredirhost_clear_device(host);
return libusb_status_or_error_to_redir_status(host, r);
}