diff options
author | Martin Aumueller | 2008-08-04 17:28:35 +0200 |
---|---|---|
committer | Matt Colyer | 2008-08-04 23:04:15 -0700 |
commit | 294f6080e7c26cb390093eead11c8e0757e00fe2 (patch) | |
tree | d3e1e700c95a185da85e476e939023d8bdacda48 | |
parent | fe2cb86652d8f2038df64f2cb5985dd1088db051 (diff) | |
download | libimobiledevice-294f6080e7c26cb390093eead11c8e0757e00fe2.tar.gz libimobiledevice-294f6080e7c26cb390093eead11c8e0757e00fe2.tar.bz2 |
Print libusb errors during usb_bulk_read/write.
Signed-off-by: Matt Colyer <matt@colyer.name>
-rw-r--r-- | src/iphone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iphone.c b/src/iphone.c index 5aefbf6..e4acea9 100644 --- a/src/iphone.c +++ b/src/iphone.c @@ -95,7 +95,7 @@ iPhone *get_iPhone() { if (bytes < 20) { free_iPhone(phone); if (debug) printf("get_iPhone(): Invalid version message -- header too short.\n"); - if (debug && bytes < 0) printf("get_iPhone(): libusb error message %d: %s (%s)\n", usb_strerror(), strerror(-bytes)); + if (debug && bytes < 0) printf("get_iPhone(): libusb error message %d: %s (%s)\n", bytes, usb_strerror(), strerror(-bytes)); return NULL; } else { if (ntohl(version->major) == 1 && ntohl(version->minor) == 0) { |