summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2007-06-08 11:47:36 +0000
committerphk <phk@FreeBSD.org>2007-06-08 11:47:36 +0000
commit2e820ecea1f23a01a478cfd63092b1bf76e57b9c (patch)
tree0fb483f9d37d538d7d9da00d6f89d84b380cf8e9 /sys/kern/init_main.c
parent9708f201776b19df8dda84648daf1fa51f897810 (diff)
downloadFreeBSD-src-2e820ecea1f23a01a478cfd63092b1bf76e57b9c.zip
FreeBSD-src-2e820ecea1f23a01a478cfd63092b1bf76e57b9c.tar.gz
Double the WITNESS and DIAGNOSTIC benchmark warnings right before we
go into userland to improve the chances of people noticing them.
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 10996e7..ac00de0 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -296,6 +296,8 @@ static char wit_warn[] =
"WARNING: WITNESS option enabled, expect reduced performance.\n";
SYSINIT(witwarn, SI_SUB_COPYRIGHT, SI_ORDER_THIRD + 1,
print_caddr_t, wit_warn)
+SYSINIT(witwarn2, SI_SUB_RUN_SCHEDULER, SI_ORDER_THIRD + 1,
+ print_caddr_t, wit_warn)
#endif
#ifdef DIAGNOSTIC
@@ -303,6 +305,8 @@ static char diag_warn[] =
"WARNING: DIAGNOSTIC option enabled, expect reduced performance.\n";
SYSINIT(diagwarn, SI_SUB_COPYRIGHT, SI_ORDER_THIRD + 2,
print_caddr_t, diag_warn)
+SYSINIT(diagwarn2, SI_SUB_RUN_SCHEDULER, SI_ORDER_THIRD + 2,
+ print_caddr_t, diag_warn)
#endif
static void
OpenPOWER on IntegriCloud