From 60ec8e26e07055d26a27a029c2494882365bb3dd Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Tue, 26 Apr 2011 15:03:29 +0200 Subject: idevicebackup4: Remove obsolete debug_buf() function --- tools/idevicebackup4.c | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/tools/idevicebackup4.c b/tools/idevicebackup4.c index 490bb21..b0e4f40 100644 --- a/tools/idevicebackup4.c +++ b/tools/idevicebackup4.c @@ -77,37 +77,6 @@ static void notify_cb(const char *notification, void *userdata) } } -static void debug_buf(const char *data, const int length) -{ - int i; - int j; - unsigned char c; - - for (i = 0; i < length; i += 16) { - fprintf(stdout, "%04x: ", i); - for (j = 0; j < 16; j++) { - if (i + j >= length) { - fprintf(stdout, " "); - continue; - } - fprintf(stdout, "%02hhx ", *(data + i + j)); - } - fprintf(stdout, " | "); - for (j = 0; j < 16; j++) { - if (i + j >= length) - break; - c = *(data + i + j); - if ((c < 32) || (c > 127)) { - fprintf(stdout, "."); - continue; - } - fprintf(stdout, "%c", c); - } - fprintf(stdout, "\n"); - } - fprintf(stdout, "\n"); -} - static void free_dictionary(char **dictionary) { int i = 0; @@ -867,7 +836,6 @@ static int mb2_handle_receive_files(plist_t message, const char *backup_dir) printf("trashing padding\n"); fname = (char*)malloc(nlen-1); mobilebackup2_receive_raw(mobilebackup2, fname, nlen-1, &r); - debug_buf(fname, r); free(fname); remove(bname); } -- cgit v1.1-32-gdbae