diff options
| author | 2013-11-14 02:24:42 +0100 | |
|---|---|---|
| committer | 2013-11-14 02:24:42 +0100 | |
| commit | de37a6b0cf0f19b0dbe0796de04985743b1290e6 (patch) | |
| tree | eff3b1cc8cb190b4b05138af2a7151289549b3fa | |
| parent | 5926dfdcb01f865f0bd0de35a33061b8942dfb31 (diff) | |
| download | ideviceinstaller-de37a6b0cf0f19b0dbe0796de04985743b1290e6.tar.gz ideviceinstaller-de37a6b0cf0f19b0dbe0796de04985743b1290e6.tar.bz2 | |
Use carriage return correctly when displaying status messages from device
| -rw-r--r-- | src/ideviceinstaller.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ static void status_cb(const char *operation, plist_t status) | |||
| 107 | } | 107 | } |
| 108 | if (!nerror) { | 108 | if (!nerror) { |
| 109 | if (last_status && (strcmp(last_status, status_msg))) { | 109 | if (last_status && (strcmp(last_status, status_msg))) { |
| 110 | printf("\n"); | 110 | printf("\r"); |
| 111 | } | 111 | } |
| 112 | 112 | ||
| 113 | if (!npercent) { | 113 | if (!npercent) { |
| 114 | printf("%s - %s\n", operation, status_msg); | 114 | printf("%s - %s\n", operation, status_msg); |
| 115 | } else { | 115 | } else { |
| 116 | printf("%s - %s (%d%%)\r", operation, status_msg, percent); | 116 | printf("%s - %s (%d%%)\n", operation, status_msg, percent); |
| 117 | } | 117 | } |
| 118 | } else { | 118 | } else { |
| 119 | char *err_msg = NULL; | 119 | char *err_msg = NULL; |
