Date: Mon, 26 Nov 2018 11:11:54 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r340947 - stable/11/sys/kern Message-ID: <201811261111.wAQBBs8F017788@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Mon Nov 26 11:11:53 2018 New Revision: 340947 URL: https://svnweb.freebsd.org/changeset/base/340947 Log: MFC r340621: Be more verbose when a sysctl fails to unregister. Print name of sysctl in question. Sponsored by: Mellanox Technologies Modified: stable/11/sys/kern/kern_sysctl.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/kern/kern_sysctl.c ============================================================================== --- stable/11/sys/kern/kern_sysctl.c Mon Nov 26 11:11:02 2018 (r340946) +++ stable/11/sys/kern/kern_sysctl.c Mon Nov 26 11:11:53 2018 (r340947) @@ -479,8 +479,10 @@ sysctl_unregister_oid(struct sysctl_oid *oidp) * being unloaded afterwards. It should not be a panic() * for normal use. */ - if (error) - printf("%s: failed to unregister sysctl\n", __func__); + if (error) { + printf("%s: failed(%d) to unregister sysctl(%s)\n", + __func__, error, oidp->oid_name); + } } /* Initialize a new context to keep track of dynamically added sysctls. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811261111.wAQBBs8F017788>