summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-10-09 17:44:11 +0200
committerGravatar Martin Szulecki2013-10-09 17:44:11 +0200
commit8050de72b9910a923959e26cd5cc9e3181ae7761 (patch)
treee846707abd28bfa15a97c9ebaac98a85ead30a4f
parent708a866e103539384a3a789cee7a4d6753b4c277 (diff)
downloadlibimobiledevice-8050de72b9910a923959e26cd5cc9e3181ae7761.tar.gz
libimobiledevice-8050de72b9910a923959e26cd5cc9e3181ae7761.tar.bz2
Remove duplicate newline from debug messages as one is added automatically
-rw-r--r--common/userpref.c2
-rw-r--r--src/afc.c2
-rw-r--r--src/idevice.c2
-rw-r--r--src/lockdown.c2
-rw-r--r--src/notification_proxy.c4
-rw-r--r--src/property_list_service.c4
-rw-r--r--src/restore.c2
7 files changed, 9 insertions, 9 deletions
diff --git a/common/userpref.c b/common/userpref.c
index 35192ac..e9b47dc 100644
--- a/common/userpref.c
+++ b/common/userpref.c
@@ -602,7 +602,7 @@ userpref_error_t userpref_remove_device_record(const char *udid)
602 602
603 /* remove file */ 603 /* remove file */
604 if (remove(device_record_file) != 0) { 604 if (remove(device_record_file) != 0) {
605 debug_info("could not remove %s: %s\n", device_record_file, strerror(errno)); 605 debug_info("could not remove %s: %s", device_record_file, strerror(errno));
606 res = USERPREF_E_UNKNOWN_ERROR; 606 res = USERPREF_E_UNKNOWN_ERROR;
607 } 607 }
608 608
diff --git a/src/afc.c b/src/afc.c
index fc6ce73..e3da184 100644
--- a/src/afc.c
+++ b/src/afc.c
@@ -215,7 +215,7 @@ static afc_error_t afc_dispatch_packet(afc_client_t client, const char *data, ui
215 if ((length) < (client->afc_packet->entire_length - client->afc_packet->this_length)) { 215 if ((length) < (client->afc_packet->entire_length - client->afc_packet->this_length)) {
216 debug_info("Length did not resemble what it was supposed to based on packet"); 216 debug_info("Length did not resemble what it was supposed to based on packet");
217 debug_info("length minus offset: %i", length - offset); 217 debug_info("length minus offset: %i", length - offset);
218 debug_info("rest of packet: %i\n", client->afc_packet->entire_length - client->afc_packet->this_length); 218 debug_info("rest of packet: %i", client->afc_packet->entire_length - client->afc_packet->this_length);
219 return AFC_E_INTERNAL_ERROR; 219 return AFC_E_INTERNAL_ERROR;
220 } 220 }
221 221
diff --git a/src/idevice.c b/src/idevice.c
index f35c666..b067fa5 100644
--- a/src/idevice.c
+++ b/src/idevice.c
@@ -113,7 +113,7 @@ idevice_error_t idevice_get_device_list(char ***devices, int *count)
113 *count = 0; 113 *count = 0;
114 114
115 if (usbmuxd_get_device_list(&dev_list) < 0) { 115 if (usbmuxd_get_device_list(&dev_list) < 0) {
116 debug_info("ERROR: usbmuxd is not running!\n", __func__); 116 debug_info("ERROR: usbmuxd is not running!", __func__);
117 return IDEVICE_E_NO_DEVICE; 117 return IDEVICE_E_NO_DEVICE;
118 } 118 }
119 119
diff --git a/src/lockdown.c b/src/lockdown.c
index c8341e4..d94fabb 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -389,7 +389,7 @@ lockdownd_error_t lockdownd_query_type(lockdownd_client_t client, char **type)
389 } 389 }
390 ret = LOCKDOWN_E_SUCCESS; 390 ret = LOCKDOWN_E_SUCCESS;
391 } else { 391 } else {
392 debug_info("hmm. QueryType response does not contain a type?!\n"); 392 debug_info("hmm. QueryType response does not contain a type?!");
393 debug_plist(dict); 393 debug_plist(dict);
394 } 394 }
395 plist_free(dict); 395 plist_free(dict);
diff --git a/src/notification_proxy.c b/src/notification_proxy.c
index 3f48601..d219b30 100644
--- a/src/notification_proxy.c
+++ b/src/notification_proxy.c
@@ -336,7 +336,7 @@ static int np_get_notification(np_client_t client, char **notification)
336 res = -2; 336 res = -2;
337 if (name_value_node && name_value) { 337 if (name_value_node && name_value) {
338 *notification = name_value; 338 *notification = name_value;
339 debug_info("got notification %s\n", __func__, name_value); 339 debug_info("got notification %s", __func__, name_value);
340 res = 0; 340 res = 0;
341 } 341 }
342 } else if (cmd_value && !strcmp(cmd_value, "ProxyDeath")) { 342 } else if (cmd_value && !strcmp(cmd_value, "ProxyDeath")) {
@@ -421,7 +421,7 @@ np_error_t np_set_notify_callback( np_client_t client, np_notify_cb_t notify_cb,
421 421
422 np_lock(client); 422 np_lock(client);
423 if (client->notifier) { 423 if (client->notifier) {
424 debug_info("callback already set, removing\n"); 424 debug_info("callback already set, removing");
425 property_list_service_client_t parent = client->parent; 425 property_list_service_client_t parent = client->parent;
426 client->parent = NULL; 426 client->parent = NULL;
427 thread_join(client->notifier); 427 thread_join(client->notifier);
diff --git a/src/property_list_service.c b/src/property_list_service.c
index ea117af..6efeaf1 100644
--- a/src/property_list_service.c
+++ b/src/property_list_service.c
@@ -240,7 +240,7 @@ static property_list_service_error_t internal_plist_receive_timeout(property_lis
240 debug_info("%d bytes following", pktlen); 240 debug_info("%d bytes following", pktlen);
241 content = (char*)malloc(pktlen); 241 content = (char*)malloc(pktlen);
242 if (!content) { 242 if (!content) {
243 debug_info("out of memory when allocating %d bytes\n", pktlen); 243 debug_info("out of memory when allocating %d bytes", pktlen);
244 return PROPERTY_LIST_SERVICE_E_UNKNOWN_ERROR; 244 return PROPERTY_LIST_SERVICE_E_UNKNOWN_ERROR;
245 } 245 }
246 246
@@ -254,7 +254,7 @@ static property_list_service_error_t internal_plist_receive_timeout(property_lis
254 curlen += bytes; 254 curlen += bytes;
255 } 255 }
256 if (curlen < pktlen) { 256 if (curlen < pktlen) {
257 debug_info("received incomplete packet (%d of %d bytes)\n", curlen, pktlen); 257 debug_info("received incomplete packet (%d of %d bytes)", curlen, pktlen);
258 if (curlen > 0) { 258 if (curlen > 0) {
259 debug_info("incomplete packet following:"); 259 debug_info("incomplete packet following:");
260 debug_buffer(content, curlen); 260 debug_buffer(content, curlen);
diff --git a/src/restore.c b/src/restore.c
index a7f07f2..88fc168 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -260,7 +260,7 @@ restored_error_t restored_query_type(restored_client_t client, char **type, uint
260 } 260 }
261 ret = RESTORE_E_SUCCESS; 261 ret = RESTORE_E_SUCCESS;
262 } else { 262 } else {
263 debug_info("hmm. QueryType response does not contain a type?!\n"); 263 debug_info("hmm. QueryType response does not contain a type?!");
264 debug_plist(dict); 264 debug_plist(dict);
265 plist_free(dict); 265 plist_free(dict);
266 } 266 }