aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2002-04-29 09:15:38 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2002-04-29 09:15:38 +0000
commitdbe620d321823d5fdcefd427c5efd8e3f5516db1 (patch)
tree3fb1b802694c9d8db9c3c535a1a8b529363f88f6
parent1cf1a725ff38434b6bc4fcca1d41cab80db56819 (diff)
Notes
-rw-r--r--sys/kern/subr_prf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
index d1c42a657ef0..a063e4beac26 100644
--- a/sys/kern/subr_prf.c
+++ b/sys/kern/subr_prf.c
@@ -94,6 +94,10 @@ static int consintr = 1; /* Ok to handle console interrupts? */
static int msgbufmapped; /* Set when safe to use msgbuf */
int msgbuftrigger;
+static int log_console_output = 1;
+SYSCTL_INT(_kern, OID_AUTO, log_console_output, CTLFLAG_RW,
+ &log_console_output, 0, "");
+
/*
* Warn that a system table is full.
*/
@@ -242,6 +246,9 @@ log_console(struct uio *uio)
char *consbuffer;
int pri;
+ if (!log_console_output)
+ return;
+
pri = LOG_INFO | LOG_CONSOLE;
muio = *uio;
iovlen = uio->uio_iovcnt * sizeof (struct iovec);