Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern print the names of the sysctl nodes in the KASSERT.
details: https://anonhg.NetBSD.org/src/rev/abb9e18d5714
branches: trunk
changeset: 448283:abb9e18d5714
user: christos <christos%NetBSD.org@localhost>
date: Mon Jan 28 15:56:12 2019 +0000
description:
print the names of the sysctl nodes in the KASSERT.
diffstat:
sys/kern/kern_sysctl.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 6e57301a695e -r abb9e18d5714 sys/kern/kern_sysctl.c
--- a/sys/kern/kern_sysctl.c Mon Jan 28 15:46:49 2019 +0000
+++ b/sys/kern/kern_sysctl.c Mon Jan 28 15:56:12 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_sysctl.c,v 1.262 2018/10/14 17:37:40 jdolecek Exp $ */
+/* $NetBSD: kern_sysctl.c,v 1.263 2019/01/28 15:56:12 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.262 2018/10/14 17:37:40 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sysctl.c,v 1.263 2019/01/28 15:56:12 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_defcorename.h"
@@ -2130,7 +2130,8 @@
*/
if (error == 0) {
KASSERTMSG(pnode->sysctl_parent == snode,
- "sysctl parent mis-match");
+ "sysctl parent mis-match pnode %s, snode %s",
+ pnode->sysctl_name, snode->sysctl_name);
if (log != NULL)
sysctl_log_add(log, pnode);
if (cnode != NULL)
Home |
Main Index |
Thread Index |
Old Index