summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Aumueller2008-08-04 17:28:35 +0200
committerGravatar Matt Colyer2008-08-04 23:04:15 -0700
commit294f6080e7c26cb390093eead11c8e0757e00fe2 (patch)
treed3e1e700c95a185da85e476e939023d8bdacda48 /src
parentfe2cb86652d8f2038df64f2cb5985dd1088db051 (diff)
downloadlibplist-294f6080e7c26cb390093eead11c8e0757e00fe2.tar.gz
libplist-294f6080e7c26cb390093eead11c8e0757e00fe2.tar.bz2
Print libusb errors during usb_bulk_read/write.
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'src')
-rw-r--r--src/iphone.c2
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) {