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. */
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"