From cc1d6b734369961e686c8c04f9cce2b820fdb543 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Mon, 25 Jan 2010 22:05:28 +0100 Subject: Remove debug_plist helper in iphonebackup --- tools/iphonebackup.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'tools') 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; -- cgit v1.1-32-gdbae