DEVFS - Remove debugging
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 4 Aug 2009 17:39:22 +0000 (10:39 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 4 Aug 2009 17:39:22 +0000 (10:39 -0700)
sys/vfs/devfs/devfs_core.c
sys/vfs/devfs/devfs_vfsops.c

index 44aef44..e37dc21 100644 (file)
@@ -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:
index 9bdd43a..907fd6e 100644 (file)
@@ -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;