summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/AFC.c2
-rw-r--r--src/iphone.c2
-rw-r--r--src/lockdown.c18
3 files changed, 11 insertions, 11 deletions
diff --git a/src/AFC.c b/src/AFC.c
index 6027ed2..cd24cc6 100644
--- a/src/AFC.c
+++ b/src/AFC.c
@@ -228,7 +228,7 @@ static int receive_AFC_data(iphone_afc_client_t client, char **dump_here)
228 iphone_mux_recv(client->connection, buffer, sizeof(AFCPacket) * 4, &bytes); 228 iphone_mux_recv(client->connection, buffer, sizeof(AFCPacket) * 4, &bytes);
229 if (bytes <= 0) { 229 if (bytes <= 0) {
230 free(buffer); 230 free(buffer);
231 fprintf(stderr, "Just didn't get enough.\n"); 231 log_debug_msg("Just didn't get enough.\n");
232 *dump_here = NULL; 232 *dump_here = NULL;
233 return -1; 233 return -1;
234 } 234 }
diff --git a/src/iphone.c b/src/iphone.c
index 1f68180..457d919 100644
--- a/src/iphone.c
+++ b/src/iphone.c
@@ -151,7 +151,7 @@ static iphone_error_t iphone_get_specific_device(unsigned int bus_n, int dev_n,
151 // Check for correct version 151 // Check for correct version
152 if (ntohl(version->major) == 1 && ntohl(version->minor) == 0) { 152 if (ntohl(version->major) == 1 && ntohl(version->minor) == 0) {
153 // We're all ready to roll. 153 // We're all ready to roll.
154 fprintf(stderr, "get_iPhone() success\n"); 154 log_debug_msg("get_iPhone() success\n");
155 free(version); 155 free(version);
156 *device = phone; 156 *device = phone;
157 return IPHONE_E_SUCCESS; 157 return IPHONE_E_SUCCESS;
diff --git a/src/lockdown.c b/src/lockdown.c
index ab168a3..2d85a03 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -126,7 +126,7 @@ static void iphone_lckd_stop_session(iphone_lckd_client_t control)
126 126
127 plist = xmlReadMemory(XML_content, bytes, NULL, NULL, 0); 127 plist = xmlReadMemory(XML_content, bytes, NULL, NULL, 0);
128 if (!plist) { 128 if (!plist) {
129 fprintf(stderr, "lockdownd_stop_session(): IPHONE_E_PLIST_ERROR\n"); 129 log_debug_msg("lockdownd_stop_session(): IPHONE_E_PLIST_ERROR\n");
130 return; //IPHONE_E_PLIST_ERROR; 130 return; //IPHONE_E_PLIST_ERROR;
131 } 131 }
132 dict = xmlDocGetRootElement(plist); 132 dict = xmlDocGetRootElement(plist);
@@ -135,7 +135,7 @@ static void iphone_lckd_stop_session(iphone_lckd_client_t control)
135 break; 135 break;
136 } 136 }
137 if (!dict) { 137 if (!dict) {
138 fprintf(stderr, "lockdownd_stop_session(): IPHONE_E_DICT_ERROR\n"); 138 log_debug_msg("lockdownd_stop_session(): IPHONE_E_DICT_ERROR\n");
139 return; //IPHONE_E_DICT_ERROR; 139 return; //IPHONE_E_DICT_ERROR;
140 } 140 }
141 dictionary = read_dict_element_strings(dict); 141 dictionary = read_dict_element_strings(dict);
@@ -460,7 +460,7 @@ iphone_error_t iphone_lckd_new_client(iphone_device_t device, iphone_lckd_client
460 460
461 iphone_lckd_client_t client_loc = new_lockdownd_client(device); 461 iphone_lckd_client_t client_loc = new_lockdownd_client(device);
462 if (IPHONE_E_SUCCESS != lockdownd_hello(client_loc)) { 462 if (IPHONE_E_SUCCESS != lockdownd_hello(client_loc)) {
463 fprintf(stderr, "Hello failed in the lockdownd client.\n"); 463 log_debug_msg("Hello failed in the lockdownd client.\n");
464 ret = IPHONE_E_NOT_ENOUGH_DATA; 464 ret = IPHONE_E_NOT_ENOUGH_DATA;
465 } 465 }
466 466
@@ -468,12 +468,12 @@ iphone_error_t iphone_lckd_new_client(iphone_device_t device, iphone_lckd_client
468 char *uid = NULL; 468 char *uid = NULL;
469 ret = lockdownd_get_device_uid(client_loc, &uid); 469 ret = lockdownd_get_device_uid(client_loc, &uid);
470 if (IPHONE_E_SUCCESS != ret) { 470 if (IPHONE_E_SUCCESS != ret) {
471 fprintf(stderr, "Device refused to send uid.\n"); 471 log_debug_msg("Device refused to send uid.\n");
472 } 472 }
473 473
474 host_id = get_host_id(); 474 host_id = get_host_id();
475 if (IPHONE_E_SUCCESS == ret && !host_id) { 475 if (IPHONE_E_SUCCESS == ret && !host_id) {
476 fprintf(stderr, "No HostID found, run libiphone-initconf.\n"); 476 log_debug_msg("No HostID found, run libiphone-initconf.\n");
477 ret = IPHONE_E_INVALID_CONF; 477 ret = IPHONE_E_INVALID_CONF;
478 } 478 }
479 479
@@ -488,7 +488,7 @@ iphone_error_t iphone_lckd_new_client(iphone_device_t device, iphone_lckd_client
488 ret = lockdownd_start_SSL_session(client_loc, host_id); 488 ret = lockdownd_start_SSL_session(client_loc, host_id);
489 if (IPHONE_E_SUCCESS != ret) { 489 if (IPHONE_E_SUCCESS != ret) {
490 ret = IPHONE_E_SSL_ERROR; 490 ret = IPHONE_E_SSL_ERROR;
491 fprintf(stderr, "SSL Session opening failed.\n"); 491 log_debug_msg("SSL Session opening failed.\n");
492 } 492 }
493 493
494 if (host_id) { 494 if (host_id) {
@@ -526,7 +526,7 @@ iphone_error_t lockdownd_pair_device(iphone_lckd_client_t control, char *uid, ch
526 526
527 ret = lockdownd_get_device_public_key(control, &public_key_b64); 527 ret = lockdownd_get_device_public_key(control, &public_key_b64);
528 if (ret != IPHONE_E_SUCCESS) { 528 if (ret != IPHONE_E_SUCCESS) {
529 fprintf(stderr, "Device refused to send public key.\n"); 529 log_debug_msg("Device refused to send public key.\n");
530 return ret; 530 return ret;
531 } 531 }
532 532
@@ -647,7 +647,7 @@ void lockdownd_close(iphone_lckd_client_t control)
647 647
648 plist = xmlReadMemory(XML_content, bytes, NULL, NULL, 0); 648 plist = xmlReadMemory(XML_content, bytes, NULL, NULL, 0);
649 if (!plist) { 649 if (!plist) {
650 fprintf(stderr, "lockdownd_close(): IPHONE_E_PLIST_ERROR\n"); 650 log_debug_msg("lockdownd_close(): IPHONE_E_PLIST_ERROR\n");
651 return; //IPHONE_E_PLIST_ERROR; 651 return; //IPHONE_E_PLIST_ERROR;
652 } 652 }
653 dict = xmlDocGetRootElement(plist); 653 dict = xmlDocGetRootElement(plist);
@@ -656,7 +656,7 @@ void lockdownd_close(iphone_lckd_client_t control)
656 break; 656 break;
657 } 657 }
658 if (!dict) { 658 if (!dict) {
659 fprintf(stderr, "lockdownd_close(): IPHONE_E_DICT_ERROR\n"); 659 log_debug_msg("lockdownd_close(): IPHONE_E_DICT_ERROR\n");
660 return; //IPHONE_E_DICT_ERROR; 660 return; //IPHONE_E_DICT_ERROR;
661 } 661 }
662 dictionary = read_dict_element_strings(dict); 662 dictionary = read_dict_element_strings(dict);