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 14:17:05 +1000 |
commit | 70bb4980b19a4ba1d3f92c18df0b03104c4a9b6b (patch) | |
tree | c56a85e95492286fc5bfc2e9823842e12a1b1025 /discover | |
parent | 0dca9e11c5bacd76a12b2e52a263ca7bd94b9a00 (diff) | |
download | talos-petitboot-70bb4980b19a4ba1d3f92c18df0b03104c4a9b6b.tar.gz talos-petitboot-70bb4980b19a4ba1d3f92c18df0b03104c4a9b6b.zip |
discover/paths: Set suffix to default value on error.
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>
Diffstat (limited to 'discover')
-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 dcd7b49..174bdae 100644 --- a/discover/paths.c +++ b/discover/paths.c @@ -186,8 +186,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); |