Author: hselasky
Date: Mon Nov 26 11:11:02 2018
New Revision: 340946
URL: https://svnweb.freebsd.org/changeset/base/340946
Log:
MFC r340621:
Be more verbose when a sysctl fails to unregister.
Print name of sysctl in question.
Sponsored by: Mellanox Technologies
Modified:
stable/12/sys/kern/kern_sysctl.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/kern/kern_sysctl.c
==============================================================================
--- stable/12/sys/kern/kern_sysctl.c Mon Nov 26 11:09:51 2018
(r340945)
+++ stable/12/sys/kern/kern_sysctl.c Mon Nov 26 11:11:02 2018
(r340946)
@@ -565,8 +565,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. */
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"