From 70bb4980b19a4ba1d3f92c18df0b03104c4a9b6b Mon Sep 17 00:00:00 2001 From: Samuel Mendoza-Jonas Date: Mon, 30 Jul 2018 11:48:26 +1000 Subject: [PATCH 1/1] 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 --- discover/paths.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.2