From: Matthew Dillon Date: Tue, 4 Aug 2009 17:39:22 +0000 (-0700) Subject: DEVFS - Remove debugging X-Git-Tag: v2.4.0~366 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/0709f68159a0134f265a49e043bdfe5aabc938cd DEVFS - Remove debugging --- diff --git a/sys/vfs/devfs/devfs_core.c b/sys/vfs/devfs/devfs_core.c index 44aef4494f..e37dc219a9 100644 --- a/sys/vfs/devfs/devfs_core.c +++ b/sys/vfs/devfs/devfs_core.c @@ -1106,9 +1106,12 @@ devfs_msg_core(void *arg) case DEVFS_MOUNT_DEL: mnt = msg->mdv_mnt; TAILQ_REMOVE(&devfs_mnt_list, mnt, link); - devfs_debug(DEVFS_DEBUG_SHOW, "There are still %d devfs_node elements!!!\n", mnt->leak_count); devfs_reaperp(mnt->root_node); - devfs_debug(DEVFS_DEBUG_SHOW, "Leaked %d devfs_node elements!!!\n", mnt->leak_count); + if (mnt->leak_count) { + devfs_debug(DEVFS_DEBUG_SHOW, + "Leaked %d devfs_node elements!\n", + mnt->leak_count); + } break; case DEVFS_CHANDLER_ADD: diff --git a/sys/vfs/devfs/devfs_vfsops.c b/sys/vfs/devfs/devfs_vfsops.c index 9bdd43ab95..907fd6e6af 100644 --- a/sys/vfs/devfs/devfs_vfsops.c +++ b/sys/vfs/devfs/devfs_vfsops.c @@ -121,13 +121,6 @@ devfs_unmount(struct mount *mp, int mntflags) if (error) return (error); - - devfs_debug(DEVFS_DEBUG_SHOW, - "There were %d devfs_node orphans left\n", - devfs_tracer_orphan_count(mp, 1)); - devfs_debug(DEVFS_DEBUG_SHOW, - "There are %d devfs_node orphans left\n", - devfs_tracer_orphan_count(mp, 0)); devfs_mount_del(DEVFS_MNTDATA(mp)); kfree(mp->mnt_data, M_DEVFS); mp->mnt_data = NULL;