From: Samuel Mendoza-Jonas Date: Mon, 30 Jul 2018 01:48:26 +0000 (+1000) Subject: discover/paths: Set suffix to default value on error. X-Git-Tag: v1.9.0~48 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=70bb4980b19a4ba1d3f92c18df0b03104c4a9b6b;hp=0dca9e11c5bacd76a12b2e52a263ca7bd94b9a00 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 --- 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);