Turn noisy vfs debugging code into printds
authorKevin Klues <klueska@cs.berkeley.edu>
Thu, 12 Jun 2014 23:56:34 +0000 (16:56 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 12 Jun 2014 23:56:34 +0000 (16:56 -0700)
kern/src/kfs.c
kern/src/vfs.c

index e36175f..4584312 100644 (file)
@@ -444,7 +444,7 @@ int kfs_rmdir(struct inode *dir, struct dentry *dentry)
        if (!empty)
                return -ENOTEMPTY;
        kref_put(&dentry->d_kref);                              /* unpin the dentry, KFS-style */
-       printk("DENTRY %s REFCNT %d\n", dentry->d_name.name, kref_refcnt(&dentry->d_kref));
+       printd("DENTRY %s REFCNT %d\n", dentry->d_name.name, kref_refcnt(&dentry->d_kref));
        return 0;
 }
 
index 1d75082..d5f45a7 100644 (file)
@@ -715,7 +715,7 @@ void dentry_release(struct kref *kref)
 void __dentry_free(struct dentry *dentry)
 {
        if (dentry->d_inode)
-               printk("Freeing dentry %p: %s\n", dentry, dentry->d_name.name);
+               printd("Freeing dentry %p: %s\n", dentry, dentry->d_name.name);
        assert(dentry->d_op);   /* catch bugs.  a while back, some lacked d_op */
        dentry->d_op->d_release(dentry);
        /* TODO: check/test the boundaries on this. */