mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 14:02:52 +07:00
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 <troglobit@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user