diff options
Diffstat (limited to 'tools')
| -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) | |||
| 77 | } | 77 | } |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | static void debug_buf(const char *data, const int length) | ||
| 81 | { | ||
| 82 | int i; | ||
| 83 | int j; | ||
| 84 | unsigned char c; | ||
| 85 | |||
| 86 | for (i = 0; i < length; i += 16) { | ||
| 87 | fprintf(stdout, "%04x: ", i); | ||
| 88 | for (j = 0; j < 16; j++) { | ||
| 89 | if (i + j >= length) { | ||
| 90 | fprintf(stdout, " "); | ||
| 91 | continue; | ||
| 92 | } | ||
| 93 | fprintf(stdout, "%02hhx ", *(data + i + j)); | ||
| 94 | } | ||
| 95 | fprintf(stdout, " | "); | ||
| 96 | for (j = 0; j < 16; j++) { | ||
| 97 | if (i + j >= length) | ||
| 98 | break; | ||
| 99 | c = *(data + i + j); | ||
| 100 | if ((c < 32) || (c > 127)) { | ||
| 101 | fprintf(stdout, "."); | ||
| 102 | continue; | ||
| 103 | } | ||
| 104 | fprintf(stdout, "%c", c); | ||
| 105 | } | ||
| 106 | fprintf(stdout, "\n"); | ||
| 107 | } | ||
| 108 | fprintf(stdout, "\n"); | ||
| 109 | } | ||
| 110 | |||
| 111 | static void free_dictionary(char **dictionary) | 80 | static void free_dictionary(char **dictionary) |
| 112 | { | 81 | { |
| 113 | int i = 0; | 82 | int i = 0; |
| @@ -867,7 +836,6 @@ static int mb2_handle_receive_files(plist_t message, const char *backup_dir) | |||
| 867 | printf("trashing padding\n"); | 836 | printf("trashing padding\n"); |
| 868 | fname = (char*)malloc(nlen-1); | 837 | fname = (char*)malloc(nlen-1); |
| 869 | mobilebackup2_receive_raw(mobilebackup2, fname, nlen-1, &r); | 838 | mobilebackup2_receive_raw(mobilebackup2, fname, nlen-1, &r); |
| 870 | debug_buf(fname, r); | ||
| 871 | free(fname); | 839 | free(fname); |
| 872 | remove(bname); | 840 | remove(bname); |
| 873 | } | 841 | } |
