diff options
author | n_hibma <n_hibma@FreeBSD.org> | 1999-08-14 13:32:25 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 1999-08-14 13:32:25 +0000 |
commit | d6e14ff38e7c5e3dd430f28df46c4ad563b77735 (patch) | |
tree | d54ae1c1fcf11b11ee37aaa530e1ff4f3e19bfa2 | |
parent | 9e447c4d1afaa9b661201e2fd64d7dbc1f7590d8 (diff) | |
download | FreeBSD-src-d6e14ff38e7c5e3dd430f28df46c4ad563b77735.zip FreeBSD-src-d6e14ff38e7c5e3dd430f28df46c4ad563b77735.tar.gz |
add debugging message in unregister_method
-rw-r--r-- | sys/kern/subr_bus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 760e461..f174d20 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: subr_bus.c,v 1.36 1999/08/14 05:11:01 wpaul Exp $ + * $Id: subr_bus.c,v 1.37 1999/08/14 13:20:04 n_hibma Exp $ */ #include <sys/param.h> @@ -157,6 +157,7 @@ unregister_method(struct device_op_desc *desc) struct method *m = desc->method; m->refs--; if (m->refs == 0) { + PDEBUG(("method %s, reached refcount 0", desc->name)); LIST_REMOVE(m, link); free(m, M_DEVBUF); desc->method = 0; |