From 7027cbc439f615fd599d0cd83b789e0d05ffd4ea Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 30 Nov 2015 19:45:19 +0100 Subject: [PATCH] Enforce terse mode after boot, if verbose is disabled The urandom.so plugin uncovered that `print_desc()` does not honor the `verbose` flag. At runtime `print_desc()` et al should no be displaying anyting when we finit operates in terse mode. Signed-off-by: Joachim Nilsson --- helpers.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helpers.c b/helpers.c index fbf943db..bb692c32 100644 --- a/helpers.c +++ b/helpers.c @@ -142,6 +142,9 @@ void print(int action, const char *fmt, ...) const char pending[] = " \e[1m[ \\/ ]\e[0m\n"; const char dots[] = " ....................................................................."; + if (!verbose) + return; + if (fmt) { va_start(ap, fmt); len = vsnprintf(buf, sizeof(buf), fmt, ap);