[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Kernel-option for quiet booting?
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: Kernel-option for quiet booting?
- From: Mark Rottler <mark_(_at_)_rottler_(_dot_)_org>
- Date: Tue, 1 Oct 2002 11:32:56 +0500
> Is there a possibility to make the kernel be quiet while booting up
> and not displaying all kind of messages?
Well, the following patch to /usr/src/sys/kern/subr_prf.c works for me.
It's not a simple boot switch, but I ususally compile one kernel without
this patch and call it bsd.debug. Then I can get the messages by choosing
to boot bsd.debug instead of the default bsd.
(Note that this kills *ALL* kernel messages to the console, not just
the messages during the boot phase.)
--- subr_prf.c.orig Tue May 21 23:33:29 2002
+++ subr_prf.c Thu Jun 13 15:33:37 2002
@@ -482,7 +482,7 @@
savintr = consintr; /* disable interrupts */
consintr = 0;
va_start(ap, fmt);
- retval = kprintf(fmt, TOCONS | TOLOG, NULL, NULL, ap);
+ retval = kprintf(fmt, TOLOG, NULL, NULL, ap);
va_end(ap);
if (!panicstr)
logwakeup();
If anyone has a better set of patches, I'd love to get a copy.
Mark.
--
## Mark Rottler - mark_(_at_)_slmindustries_(_dot_)_com - 317.557.8040 ##
## To announce that there must be no criticism of the President, ##
## or that we are to stand by the president, right or wrong, is ##
## not only unpatriotic and servile, but is morally treasonable ##
## to the American public. -- Theodore Roosevelt ##
Visit your host, monkey.org