Source-Changes-HG archive

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

[src/trunk]: src/sys/kern explain how a printf might happen (since it has bit...



details:   https://anonhg.NetBSD.org/src/rev/8ae8cf99fb9f
branches:  trunk
changeset: 794879:8ae8cf99fb9f
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Mar 27 21:09:33 2014 +0000

description:
explain how a printf might happen (since it has bitten more than one person)

diffstat:

 sys/kern/kern_sysctl.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 7278b465495d -r 8ae8cf99fb9f sys/kern/kern_sysctl.c
--- a/sys/kern/kern_sysctl.c    Thu Mar 27 19:34:39 2014 +0000
+++ b/sys/kern/kern_sysctl.c    Thu Mar 27 21:09:33 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_sysctl.c,v 1.248 2014/03/01 17:27:48 dsl Exp $    */
+/*     $NetBSD: kern_sysctl.c,v 1.249 2014/03/27 21:09:33 christos Exp $       */
 
 /*-
  * Copyright (c) 2003, 2007, 2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_sysctl.c,v 1.248 2014/03/01 17:27:48 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sysctl.c,v 1.249 2014/03/27 21:09:33 christos Exp $");
 
 #include "opt_defcorename.h"
 #include "ksyms.h"
@@ -2105,6 +2105,11 @@
        pnode = root;
        error = sysctl_locate(NULL, &name[0], namelen - 1, &pnode, &ni);
        if (error) {
+               /*
+                * XXX: If you are seeing this printf in early bringup
+                * stages, perhaps your setfault is not functioning and
+                * thus kcopy() is mis-behaving.
+                */
                printf("sysctl_createv: sysctl_locate(%s) returned %d\n",
                       nnode.sysctl_name, error);
                sysctl_unlock();



Home | Main Index | Thread Index | Old Index