Use carriage return correctly when displaying status messages from device
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index bb28407..2be92d3 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -107,13 +107,13 @@
}
if (!nerror) {
if (last_status && (strcmp(last_status, status_msg))) {
- printf("\n");
+ printf("\r");
}
if (!npercent) {
printf("%s - %s\n", operation, status_msg);
} else {
- printf("%s - %s (%d%%)\r", operation, status_msg, percent);
+ printf("%s - %s (%d%%)\n", operation, status_msg, percent);
}
} else {
char *err_msg = NULL;