Skip to content

Commit

Permalink
Remove duplicate newline from debug messages as one is added automati…
Browse files Browse the repository at this point in the history
…cally
  • Loading branch information
FunkyM committed Oct 9, 2013
1 parent 708a866 commit 8050de7
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion common/userpref.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ userpref_error_t userpref_remove_device_record(const char *udid)

/* remove file */
if (remove(device_record_file) != 0) {
debug_info("could not remove %s: %s\n", device_record_file, strerror(errno));
debug_info("could not remove %s: %s", device_record_file, strerror(errno));
res = USERPREF_E_UNKNOWN_ERROR;
}

Expand Down
2 changes: 1 addition & 1 deletion src/afc.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ static afc_error_t afc_dispatch_packet(afc_client_t client, const char *data, ui
if ((length) < (client->afc_packet->entire_length - client->afc_packet->this_length)) {
debug_info("Length did not resemble what it was supposed to based on packet");
debug_info("length minus offset: %i", length - offset);
debug_info("rest of packet: %i\n", client->afc_packet->entire_length - client->afc_packet->this_length);
debug_info("rest of packet: %i", client->afc_packet->entire_length - client->afc_packet->this_length);
return AFC_E_INTERNAL_ERROR;
}

Expand Down
2 changes: 1 addition & 1 deletion src/idevice.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ idevice_error_t idevice_get_device_list(char ***devices, int *count)
*count = 0;

if (usbmuxd_get_device_list(&dev_list) < 0) {
debug_info("ERROR: usbmuxd is not running!\n", __func__);
debug_info("ERROR: usbmuxd is not running!", __func__);
return IDEVICE_E_NO_DEVICE;
}

Expand Down
2 changes: 1 addition & 1 deletion src/lockdown.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ lockdownd_error_t lockdownd_query_type(lockdownd_client_t client, char **type)
}
ret = LOCKDOWN_E_SUCCESS;
} else {
debug_info("hmm. QueryType response does not contain a type?!\n");
debug_info("hmm. QueryType response does not contain a type?!");
debug_plist(dict);
}
plist_free(dict);
Expand Down
4 changes: 2 additions & 2 deletions src/notification_proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ static int np_get_notification(np_client_t client, char **notification)
res = -2;
if (name_value_node && name_value) {
*notification = name_value;
debug_info("got notification %s\n", __func__, name_value);
debug_info("got notification %s", __func__, name_value);
res = 0;
}
} else if (cmd_value && !strcmp(cmd_value, "ProxyDeath")) {
Expand Down Expand Up @@ -421,7 +421,7 @@ np_error_t np_set_notify_callback( np_client_t client, np_notify_cb_t notify_cb,

np_lock(client);
if (client->notifier) {
debug_info("callback already set, removing\n");
debug_info("callback already set, removing");
property_list_service_client_t parent = client->parent;
client->parent = NULL;
thread_join(client->notifier);
Expand Down
4 changes: 2 additions & 2 deletions src/property_list_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ static property_list_service_error_t internal_plist_receive_timeout(property_lis
debug_info("%d bytes following", pktlen);
content = (char*)malloc(pktlen);
if (!content) {
debug_info("out of memory when allocating %d bytes\n", pktlen);
debug_info("out of memory when allocating %d bytes", pktlen);
return PROPERTY_LIST_SERVICE_E_UNKNOWN_ERROR;
}

Expand All @@ -254,7 +254,7 @@ static property_list_service_error_t internal_plist_receive_timeout(property_lis
curlen += bytes;
}
if (curlen < pktlen) {
debug_info("received incomplete packet (%d of %d bytes)\n", curlen, pktlen);
debug_info("received incomplete packet (%d of %d bytes)", curlen, pktlen);
if (curlen > 0) {
debug_info("incomplete packet following:");
debug_buffer(content, curlen);
Expand Down
2 changes: 1 addition & 1 deletion src/restore.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ restored_error_t restored_query_type(restored_client_t client, char **type, uint
}
ret = RESTORE_E_SUCCESS;
} else {
debug_info("hmm. QueryType response does not contain a type?!\n");
debug_info("hmm. QueryType response does not contain a type?!");
debug_plist(dict);
plist_free(dict);
}
Expand Down

0 comments on commit 8050de7

Please sign in to comment.