diff options
author | Martin Szulecki | 2010-01-25 22:05:28 +0100 |
---|---|---|
committer | Martin Szulecki | 2010-01-25 22:05:28 +0100 |
commit | cc1d6b734369961e686c8c04f9cce2b820fdb543 (patch) | |
tree | 0c5e986de72990dee8a2b3194d2f361a7fae792b /tools/iphonebackup.c | |
parent | ec67ba628c688d8c0a01c7f5901155797be7b510 (diff) | |
download | libimobiledevice-cc1d6b734369961e686c8c04f9cce2b820fdb543.tar.gz libimobiledevice-cc1d6b734369961e686c8c04f9cce2b820fdb543.tar.bz2 |
Remove debug_plist helper in iphonebackup
Diffstat (limited to 'tools/iphonebackup.c')
-rw-r--r-- | tools/iphonebackup.c | 17 |
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) plist_free(status_plist); } -static void debug_plist(plist_t a) -{ - char *buffer = NULL; - uint32_t length = 0; - - if (a == NULL) - return; - - plist_to_xml(a, &buffer, &length); - - printf("Printing %i bytes plist:\n%s\n", length, buffer); - free(buffer); -} - /** * signal handler function for cleaning up properly */ @@ -409,8 +395,7 @@ int main(int argc, char *argv[]) mobilebackup_send(mobilebackup, message); } } else { - printf("Unhandled message received!\n"); - debug_plist(message); + printf("ERROR: Unhandled message received!\n"); } plist_free(message); message = NULL; |