Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Don't log kern.msgbuf* sysctls. it's rather pointl...



details:   https://anonhg.NetBSD.org/src/rev/44d26cb9c626
branches:  trunk
changeset: 338372:44d26cb9c626
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed May 20 11:18:36 2015 +0000

description:
Don't log kern.msgbuf* sysctls.  it's rather pointless, nobody can
unload subr_log.c

diffstat:

 sys/kern/subr_log.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (42 lines):

diff -r e95131f6f59a -r 44d26cb9c626 sys/kern/subr_log.c
--- a/sys/kern/subr_log.c       Wed May 20 11:17:24 2015 +0000
+++ b/sys/kern/subr_log.c       Wed May 20 11:18:36 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_log.c,v 1.54 2015/05/20 11:17:24 pooka Exp $      */
+/*     $NetBSD: subr_log.c,v 1.55 2015/05/20 11:18:36 pooka Exp $      */
 
 /*-
  * Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_log.c,v 1.54 2015/05/20 11:17:24 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_log.c,v 1.55 2015/05/20 11:18:36 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -133,7 +133,6 @@
 void
 loginit(void)
 {
-       struct sysctllog *log = NULL;
 
        mutex_init(&log_lock, MUTEX_DEFAULT, IPL_VM);
        selinit(&log_selp);
@@ -141,13 +140,13 @@
        log_sih = softint_establish(SOFTINT_CLOCK | SOFTINT_MPSAFE,
            logsoftintr, NULL);
 
-       sysctl_createv(&log, 0, NULL, NULL,
+       sysctl_createv(NULL, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
                       CTLTYPE_INT, "msgbufsize",
                       SYSCTL_DESCR("Size of the kernel message buffer"),
                       sysctl_msgbuf, 0, NULL, 0,
                       CTL_KERN, KERN_MSGBUFSIZE, CTL_EOL);
-       sysctl_createv(&log, 0, NULL, NULL,
+       sysctl_createv(NULL, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
                       CTLTYPE_INT, "msgbuf",
                       SYSCTL_DESCR("Kernel message buffer"),



Home | Main Index | Thread Index | Old Index