aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2007-06-08 11:47:36 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2007-06-08 11:47:36 +0000
commit7acfb0af82c77e61deb0cded9b731205a1a57c79 (patch)
tree0fb483f9d37d538d7d9da00d6f89d84b380cf8e9 /sys/kern/init_main.c
parent108df27c0bffca8c218246141129c5f1ce2b36b6 (diff)
downloadsrc-7acfb0af82c77e61deb0cded9b731205a1a57c79.tar.gz
src-7acfb0af82c77e61deb0cded9b731205a1a57c79.zip
Double the WITNESS and DIAGNOSTIC benchmark warnings right before we
go into userland to improve the chances of people noticing them.
Notes
Notes: svn path=/head/; revision=170429
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 10996e72045d..ac00de07d245 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