diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-05-17 22:28:46 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-05-17 22:28:46 +0000 |
| commit | 7a08bae6ec5b6921214a5dd6d5fb873fc678a9dc (patch) | |
| tree | 53874ca63e9ba343dcd4b0b0129139516f2e33a4 /sys/kern/init_main.c | |
| parent | 8b7fa31d307d141941063d79ead6982913c46f74 (diff) | |
Notes
Diffstat (limited to 'sys/kern/init_main.c')
| -rw-r--r-- | sys/kern/init_main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index a27b3e3ae84b..f1a6a0bfd745 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -99,6 +99,8 @@ extern int fallback_elf_brand; struct vnode *rootvp; int boothowto = 0; /* initialized so that it can be patched */ SYSCTL_INT(_debug, OID_AUTO, boothowto, CTLFLAG_RD, &boothowto, 0, ""); +int bootverbose; +SYSCTL_INT(_debug, OID_AUTO, bootverbose, CTLFLAG_RW, &bootverbose, 0, ""); /* * This ensures that there is at least one entry so that the sysinit_set @@ -239,6 +241,16 @@ print_caddr_t(void *data __unused) printf("%s", (char *)data); } SYSINIT(announce, SI_SUB_COPYRIGHT, SI_ORDER_FIRST, print_caddr_t, copyright) +SYSINIT(version, SI_SUB_COPYRIGHT, SI_ORDER_SECOND, print_caddr_t, version) + +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) /* *************************************************************************** |
