[PATCH 3/3] discover/paths: Set suffix to default value on error.
Samuel Mendoza-Jonas
sam at mendozajonas.com
Mon Jul 30 11:48:26 AEST 2018
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 at mendozajonas.com>
---
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.18.0
More information about the Petitboot
mailing list