Print out name of non-dynamic sysctl in sysctl_remove_oid_locked
authorngie <ngie@FreeBSD.org>
Wed, 22 Mar 2017 05:27:20 +0000 (05:27 +0000)
committerngie <ngie@FreeBSD.org>
Wed, 22 Mar 2017 05:27:20 +0000 (05:27 +0000)
commit5e4ceb2d2bb11f6e550a026625b5805fabe7cd05
tree7bb095657384621927e2920bce18e90ec23386a0
parente9167efaa2b8baf0538e0107e325d906fb713d6d
Print out name of non-dynamic sysctl in sysctl_remove_oid_locked

This will provide a slightly better smoking gun than just stating
"can't remove non-dynamic nodes!" when calling sysctl_ctx_free(9)
and sysctl_remove_{name,oid}(9) with a non-dynamic (likely
static) sysctl.

MFC after: 1 week
Sponsored by: Dell EMC Isilon
sys/kern/kern_sysctl.c