diff options
author | Simon J. Gerraty <sjg@FreeBSD.org> | 2022-02-13 20:45:57 +0000 |
---|---|---|
committer | Simon J. Gerraty <sjg@FreeBSD.org> | 2022-02-13 20:45:57 +0000 |
commit | ec042f46e9bbd195e1f7c8151df5d280a2a4d069 (patch) | |
tree | fcde72a4809080eca7814b31e72f1d1ce0ba88bf /stand/common/bootstrap.h | |
parent | 93885bb04182c104be1ec410a5ccb105f1ec5ff2 (diff) | |
download | src-ec042f46e9bbd195e1f7c8151df5d280a2a4d069.tar.gz src-ec042f46e9bbd195e1f7c8151df5d280a2a4d069.zip |
Add support for module_verbose
Set module_verbose to control the printing of information
about loaded modules and kernel:
0 MODULE_VERBOSE_SILENT None
1 MODULE_VERBOSE_SIZE Pathname and size
2 MODULE_VERBOSE_TWIDDLE as for 1 but also twiddle for progress
3 MODULE_VERBOSE_FULL extra detail
When the loader is verifying modules we already have a
running indication of progress and module_verbose=0 makes sense.
Reviewed by: rpokala
Differential Revision: https://reviews.freebsd.org/D34245
Diffstat (limited to 'stand/common/bootstrap.h')
-rw-r--r-- | stand/common/bootstrap.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/stand/common/bootstrap.h b/stand/common/bootstrap.h index 42b2c73f5774..9c62a49b0da7 100644 --- a/stand/common/bootstrap.h +++ b/stand/common/bootstrap.h @@ -124,6 +124,14 @@ void cons_probe(void); bool cons_update_mode(bool); void autoload_font(bool); +extern int module_verbose; +enum { + MODULE_VERBOSE_SILENT, /* say nothing */ + MODULE_VERBOSE_SIZE, /* print name and size */ + MODULE_VERBOSE_TWIDDLE, /* show progress */ + MODULE_VERBOSE_FULL, /* all we have */ +}; + /* * Plug-and-play enumerator/configurator interface. */ |