Add a sysctl which disables the logging of console output.
Approved by: phk MFC after: 2 weeks
This commit is contained in:
parent
1cf1a725ff
commit
dbe620d321
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user