diff options
author | John Baldwin <jhb@FreeBSD.org> | 2010-10-28 14:17:06 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2010-10-28 14:17:06 +0000 |
commit | b94e6f0ef6a370449db5c0b11e1f02aeb3062862 (patch) | |
tree | 9642cbcf9e4ae07792e481db32524fd3a484e4d2 | |
parent | 89d84a40558104f74286e4977819bfb5537cffa9 (diff) | |
download | src-b94e6f0ef6a370449db5c0b11e1f02aeb3062862.tar.gz src-b94e6f0ef6a370449db5c0b11e1f02aeb3062862.zip |
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
Notes
Notes:
svn path=/head/; revision=214449
-rw-r--r-- | sys/kern/init_main.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index d6976890e3cd..b86ea9159378 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -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) |