Set bootverbose directly in mi_startup() rather than via a SYSINIT. This
ensures 'bootverbose' is in a valid state for all SYSINITs. Reported by: avg MFC after: 1 week
This commit is contained in:
parent
89d84a4055
commit
b94e6f0ef6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=214449
@ -180,6 +180,9 @@ mi_startup(void)
|
||||
int verbose;
|
||||
#endif
|
||||
|
||||
if (boothowto & RB_VERBOSE)
|
||||
bootverbose++;
|
||||
|
||||
if (sysinit == NULL) {
|
||||
sysinit = SET_BEGIN(sysinit_set);
|
||||
sysinit_end = SET_LIMIT(sysinit_set);
|
||||
@ -327,15 +330,6 @@ SYSINIT(diagwarn2, SI_SUB_RUN_SCHEDULER, SI_ORDER_THIRD + 2,
|
||||
print_caddr_t, diag_warn);
|
||||
#endif
|
||||
|
||||
static void
|
||||
set_boot_verbose(void *data __unused)
|
||||
{
|
||||
|
||||
if (boothowto & RB_VERBOSE)
|
||||
bootverbose++;
|
||||
}
|
||||
SYSINIT(boot_verbose, SI_SUB_TUNABLES, SI_ORDER_ANY, set_boot_verbose, NULL);
|
||||
|
||||
static int
|
||||
null_fetch_syscall_args(struct thread *td __unused,
|
||||
struct syscall_args *sa __unused)
|
||||
|
Loading…
Reference in New Issue
Block a user