diff options
| author | 2010-01-25 22:05:28 +0100 | |
|---|---|---|
| committer | 2010-01-25 22:05:28 +0100 | |
| commit | cc1d6b734369961e686c8c04f9cce2b820fdb543 (patch) | |
| tree | 0c5e986de72990dee8a2b3194d2f361a7fae792b /tools | |
| parent | ec67ba628c688d8c0a01c7f5901155797be7b510 (diff) | |
| download | libimobiledevice-cc1d6b734369961e686c8c04f9cce2b820fdb543.tar.gz libimobiledevice-cc1d6b734369961e686c8c04f9cce2b820fdb543.tar.bz2 | |
Remove debug_plist helper in iphonebackup
Diffstat (limited to 'tools')
| -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) | |||
| 189 | plist_free(status_plist); | 189 | plist_free(status_plist); |
| 190 | } | 190 | } |
| 191 | 191 | ||
| 192 | static void debug_plist(plist_t a) | ||
| 193 | { | ||
| 194 | char *buffer = NULL; | ||
| 195 | uint32_t length = 0; | ||
| 196 | |||
| 197 | if (a == NULL) | ||
| 198 | return; | ||
| 199 | |||
| 200 | plist_to_xml(a, &buffer, &length); | ||
| 201 | |||
| 202 | printf("Printing %i bytes plist:\n%s\n", length, buffer); | ||
| 203 | free(buffer); | ||
| 204 | } | ||
| 205 | |||
| 206 | /** | 192 | /** |
| 207 | * signal handler function for cleaning up properly | 193 | * signal handler function for cleaning up properly |
| 208 | */ | 194 | */ |
| @@ -409,8 +395,7 @@ int main(int argc, char *argv[]) | |||
| 409 | mobilebackup_send(mobilebackup, message); | 395 | mobilebackup_send(mobilebackup, message); |
| 410 | } | 396 | } |
| 411 | } else { | 397 | } else { |
| 412 | printf("Unhandled message received!\n"); | 398 | printf("ERROR: Unhandled message received!\n"); |
| 413 | debug_plist(message); | ||
| 414 | } | 399 | } |
| 415 | plist_free(message); | 400 | plist_free(message); |
| 416 | message = NULL; | 401 | message = NULL; |
