Add a printf() to the other case in sysctl_createv() where a node did
not get attached for what should be an extremely unusual case.
This commit is contained in:
parent
fcd7df4334
commit
778eadaf46
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_sysctl.c,v 1.174 2004/05/01 07:16:55 matt Exp $ */
|
||||
/* $NetBSD: kern_sysctl.c,v 1.175 2004/05/06 07:06:46 atatat Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2003 The NetBSD Foundation, Inc.
|
||||
|
@ -75,7 +75,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_sysctl.c,v 1.174 2004/05/01 07:16:55 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_sysctl.c,v 1.175 2004/05/06 07:06:46 atatat Exp $");
|
||||
|
||||
#include "opt_defcorename.h"
|
||||
#include "opt_insecure.h"
|
||||
|
@ -1937,6 +1937,8 @@ sysctl_createv(struct sysctllog **log, int cflags,
|
|||
pnode = root;
|
||||
error = sysctl_locate(NULL, &name[0], namelen - 1, &pnode, &ni);
|
||||
if (error) {
|
||||
printf("sysctl_createv: sysctl_locate(%s) returned %d\n",
|
||||
nnode.sysctl_name, error);
|
||||
sysctl_unlock(NULL);
|
||||
return (error);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue