summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2011-04-26 15:04:30 +0200
committerGravatar Martin Szulecki2011-04-26 15:04:30 +0200
commitfdeb09f2f225511204e1d2446b0aac20744efb67 (patch)
treecedd71e603531df669ae68603fe7f3f98fbd5511
parent60ec8e26e07055d26a27a029c2494882365bb3dd (diff)
downloadlibimobiledevice-fdeb09f2f225511204e1d2446b0aac20744efb67.tar.gz
libimobiledevice-fdeb09f2f225511204e1d2446b0aac20744efb67.tar.bz2
idevicebackup4: Improve message when discarding data during cancelling of backup
-rw-r--r--tools/idevicebackup4.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/idevicebackup4.c b/tools/idevicebackup4.c
index b0e4f40..f4f812c 100644
--- a/tools/idevicebackup4.c
+++ b/tools/idevicebackup4.c
@@ -832,8 +832,10 @@ static int mb2_handle_receive_files(plist_t message, const char *backup_dir)
free(msg);
}
} while (1);
+
+ /* if there are leftovers to read, finish up cleanly */
if ((int)nlen-1 > 0) {
- printf("trashing padding\n");
+ printf("\nDiscarding current data hunk.\n");
fname = (char*)malloc(nlen-1);
mobilebackup2_receive_raw(mobilebackup2, fname, nlen-1, &r);
free(fname);