summaryrefslogtreecommitdiffstats
path: root/src/iphone.c
diff options
context:
space:
mode:
authorGravatar Matt Colyer2008-08-04 23:41:56 -0700
committerGravatar Matt Colyer2008-08-04 23:41:56 -0700
commit62bcedced863a9c4ecc3601638635dfe172a9130 (patch)
tree9937b4f6fbb848c1854e0add40f7ee86bba10d88 /src/iphone.c
parent294f6080e7c26cb390093eead11c8e0757e00fe2 (diff)
downloadlibplist-62bcedced863a9c4ecc3601638635dfe172a9130.tar.gz
libplist-62bcedced863a9c4ecc3601638635dfe172a9130.tar.bz2
Zack's C. rewrite of usbmux (with a few additions by Matt Colyer).
Diffstat (limited to 'src/iphone.c')
-rw-r--r--src/iphone.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/iphone.c b/src/iphone.c
index e4acea9..aa9687c 100644
--- a/src/iphone.c
+++ b/src/iphone.c
@@ -171,10 +171,11 @@ int send_to_phone(iPhone *phone, char *data, int datalen) {
int recv_from_phone(iPhone *phone, char *data, int datalen) {
if (!phone) return -1;
int bytes = 0;
+ if (debug) printf("recv_from_phone(): attempting to receive %i bytes\n", datalen);
bytes = usb_bulk_read(phone->device, BULKIN, data, datalen, 3500);
if(bytes < 0)
{
- if(debug) printf("recv_from_iphone(): libusb gave me the error %d: %s (%s)\n", bytes, usb_strerror(), strerror(-bytes));
+ if(debug) printf("recv_from_phone(): libusb gave me the error %d: %s (%s)\n", bytes, usb_strerror(), strerror(-bytes));
return -1;
}
return bytes;