mirror of
https://github.com/troglobit/finit.git
synced 2026-10-29 12:40:44 +00: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:
1 parent
8218fff7e5
commit
7027cbc439
1 file changed
+3
@@ -142,6 +142,9 @@ void print(int action, const char *fmt, ...)
|
|||||||
const char pending[] = " \e[1m[ \\/ ]\e[0m\n";
|
const char pending[] = " \e[1m[ \\/ ]\e[0m\n";
|
||||||
const char dots[] = " .....................................................................";
|
const char dots[] = " .....................................................................";
|
||||||
|
|
||||||
|
if (!verbose)
|
||||||
|
return;
|
||||||
|
|
||||||
if (fmt) {
|
if (fmt) {
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
len = vsnprintf(buf, sizeof(buf), fmt, ap);
|
len = vsnprintf(buf, sizeof(buf), fmt, ap);
|
||||||
|
|||||||
Reference in new issue
Block a user