diff options
author | Martin Szulecki | 2011-04-26 15:03:29 +0200 |
---|---|---|
committer | Martin Szulecki | 2011-04-26 15:03:29 +0200 |
commit | 60ec8e26e07055d26a27a029c2494882365bb3dd (patch) | |
tree | ad724a8d534fed8e52406a8ea0452b207287ca05 | |
parent | d81d4ccfd3c61a628cbda4aa64e2a8fdb55e140d (diff) | |
download | libimobiledevice-60ec8e26e07055d26a27a029c2494882365bb3dd.tar.gz libimobiledevice-60ec8e26e07055d26a27a029c2494882365bb3dd.tar.bz2 |
idevicebackup4: Remove obsolete debug_buf() function
-rw-r--r-- | tools/idevicebackup4.c | 32 |
1 files changed, 0 insertions, 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); } |