From 7acfb0af82c77e61deb0cded9b731205a1a57c79 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Fri, 8 Jun 2007 11:47:36 +0000 Subject: [PATCH] Double the WITNESS and DIAGNOSTIC benchmark warnings right before we go into userland to improve the chances of people noticing them. --- sys/kern/init_main.c | 4 ++++ 1 file changed, 4 insertions(+) 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