svn commit: r254115 - head/sys/kern
Scott Long
scottl at FreeBSD.org
Fri Aug 9 01:04:45 UTC 2013
Author: scottl
Date: Fri Aug 9 01:04:44 2013
New Revision: 254115
URL: http://svnweb.freebsd.org/changeset/base/254115
Log:
Add a helpful message that can help point to why a sysctl tree removal failed
Obtained from: Netflix
MFC after: 3 days
Modified:
head/sys/kern/kern_sysctl.c
Modified: head/sys/kern/kern_sysctl.c
==============================================================================
--- head/sys/kern/kern_sysctl.c Fri Aug 9 00:39:20 2013 (r254114)
+++ head/sys/kern/kern_sysctl.c Fri Aug 9 01:04:44 2013 (r254115)
@@ -412,8 +412,12 @@ sysctl_remove_oid_locked(struct sysctl_o
if (oidp->oid_refcnt == 1) {
SLIST_FOREACH_SAFE(p,
SYSCTL_CHILDREN(oidp), oid_link, tmp) {
- if (!recurse)
+ if (!recurse) {
+ printf("Warning: failed attempt to "
+ "remove oid %s with child %s\n",
+ oidp->oid_name, p->oid_name);
return (ENOTEMPTY);
+ }
error = sysctl_remove_oid_locked(p, del,
recurse);
if (error)
More information about the svn-src-all
mailing list