diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-07-30 11:48:26 +1000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-07-30 15:13:29 +1000 |
commit | f0e038a4b21edeab8cd5e6a0aa7439d882bbabef (patch) | |
tree | 3c0262667f1dbcca8eedcc18b7f1a6f80eed01c4 | |
parent | 1effde766f4cfc9fbf8fa7b539bebbeca59cb691 (diff) | |
download | talos-petitboot-f0e038a4b21edeab8cd5e6a0aa7439d882bbabef.tar.gz talos-petitboot-f0e038a4b21edeab8cd5e6a0aa7439d882bbabef.zip |
discover/paths: Set suffix to default value on error.v1.7.2
This avoids the log filling up with "Couldn't recognise suffix" messages
if a lot of partial stdout updates are received.
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
(cherry picked from commit 70bb4980b19a4ba1d3f92c18df0b03104c4a9b6b)
-rw-r--r-- | discover/paths.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/discover/paths.c b/discover/paths.c index 45988c1..c0e2b06 100644 --- a/discover/paths.c +++ b/discover/paths.c @@ -184,8 +184,10 @@ static int busybox_progress_cb(void *arg) } } - if (rc != 3) + if (rc != 3) { percentage = size = 0; + suffix = ' '; + } device_handler_status_download(handler, procinfo, percentage, size, suffix); |