summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-01-25 22:05:28 +0100
committerGravatar Martin Szulecki2010-01-25 22:05:28 +0100
commitcc1d6b734369961e686c8c04f9cce2b820fdb543 (patch)
tree0c5e986de72990dee8a2b3194d2f361a7fae792b
parentec67ba628c688d8c0a01c7f5901155797be7b510 (diff)
downloadlibimobiledevice-cc1d6b734369961e686c8c04f9cce2b820fdb543.tar.gz
libimobiledevice-cc1d6b734369961e686c8c04f9cce2b820fdb543.tar.bz2
Remove debug_plist helper in iphonebackup
-rw-r--r--tools/iphonebackup.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/tools/iphonebackup.c b/tools/iphonebackup.c
index 15a0495..a0b91f3 100644
--- a/tools/iphonebackup.c
+++ b/tools/iphonebackup.c
@@ -189,20 +189,6 @@ static void mobilebackup_write_status(char *path, int status)
189 plist_free(status_plist); 189 plist_free(status_plist);
190} 190}
191 191
192static void debug_plist(plist_t a)
193{
194 char *buffer = NULL;
195 uint32_t length = 0;
196
197 if (a == NULL)
198 return;
199
200 plist_to_xml(a, &buffer, &length);
201
202 printf("Printing %i bytes plist:\n%s\n", length, buffer);
203 free(buffer);
204}
205
206/** 192/**
207 * signal handler function for cleaning up properly 193 * signal handler function for cleaning up properly
208 */ 194 */
@@ -409,8 +395,7 @@ int main(int argc, char *argv[])
409 mobilebackup_send(mobilebackup, message); 395 mobilebackup_send(mobilebackup, message);
410 } 396 }
411 } else { 397 } else {
412 printf("Unhandled message received!\n"); 398 printf("ERROR: Unhandled message received!\n");
413 debug_plist(message);
414 } 399 }
415 plist_free(message); 400 plist_free(message);
416 message = NULL; 401 message = NULL;