summaryrefslogtreecommitdiffstats
path: root/src/ideviceinstaller.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2018-03-23 02:00:30 +0100
committerGravatar Nikias Bassen2018-03-23 02:00:30 +0100
commitabd479d1d8695e68d59e5a0273732f4d0f7b9a83 (patch)
treebfeb91321e080f697b138787a02357656998ef3d /src/ideviceinstaller.c
parent5ae11f5b2840ec0875a7b4a65c8f7e783fccdc2d (diff)
downloadideviceinstaller-abd479d1d8695e68d59e5a0273732f4d0f7b9a83.tar.gz
ideviceinstaller-abd479d1d8695e68d59e5a0273732f4d0f7b9a83.tar.bz2
Fix progress output to skip printing repeated progress status
Diffstat (limited to 'src/ideviceinstaller.c')
-rw-r--r--src/ideviceinstaller.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index cf424d9..ea91bd5 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -179,13 +179,13 @@ static void status_cb(plist_t command, plist_t status, void *unused)
instproxy_status_get_percent_complete(status, &percent);
if (last_status && (strcmp(last_status, status_name))) {
- printf("\r");
+ printf("\n");
}
if (percent >= 0) {
- printf("%s: %s (%d%%)\n", command_name, status_name, percent);
+ printf("\r%s: %s (%d%%)", command_name, status_name, percent);
} else {
- printf("%s: %s\n", command_name, status_name);
+ printf("\r%s: %s", command_name, status_name);
}
}
} else {