Loudly announce WITNESS and DIAGNOSTIC options and warn about reduced

performance.
This commit is contained in:
phk 2004-02-29 16:56:54 +00:00
parent 57c5dd5925
commit ae9a52c54c

View File

@ -247,6 +247,20 @@ print_caddr_t(void *data __unused)
SYSINIT(announce, SI_SUB_COPYRIGHT, SI_ORDER_FIRST, print_caddr_t, copyright)
SYSINIT(version, SI_SUB_COPYRIGHT, SI_ORDER_SECOND, print_caddr_t, version)
#ifdef WITNESS
static char wit_warn[] =
"WARNING: WITNESS option enabled, expect reduced performance.\n";
SYSINIT(witwarn, SI_SUB_COPYRIGHT, SI_ORDER_SECOND + 1,
print_caddr_t, wit_warn)
#endif
#ifdef DIAGNOSTIC
static char diag_warn[] =
"WARNING: DIAGNOSTIC option enabled, expect reduced performance.\n";
SYSINIT(diagwarn, SI_SUB_COPYRIGHT, SI_ORDER_SECOND + 2,
print_caddr_t, diag_warn)
#endif
static void
set_boot_verbose(void *data __unused)
{