diff options
author | Stefan Siegl <stesie@brokenpipe.de> | 2005-03-26 21:09:44 +0000 |
---|---|---|
committer | Stefan Siegl <stesie@brokenpipe.de> | 2005-03-26 21:09:44 +0000 |
commit | e5eccf91b0f42166f8500aad5a51dbb5c889fe8c (patch) | |
tree | e3f582f7324a898daaba5a4da8b153a6be28b742 | |
parent | 76d5530c3279a6aed82faebc30b33048ad361482 (diff) |
further debug statements added.
-rw-r--r-- | netnode.c | 4 | ||||
-rw-r--r-- | node.c | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -65,7 +65,7 @@ fuse_make_netnode(struct netnode *parent, const char *path) struct netnode *nn; int hash_value = fuse_netnode_hash_value(path); - DEBUG("netnodes_lock", "aquiring rwlock_reader_lock.\n"); + DEBUG("netnodes_lock", "aquiring rwlock_reader_lock for %s.\n", path); rwlock_reader_lock(&fuse_netnodes_lock); hash_el = &fuse_netnodes[hash_value]; @@ -93,7 +93,7 @@ fuse_make_netnode(struct netnode *parent, const char *path) nn->node = NULL; mutex_init(&nn->lock); - DEBUG("netnodes_lock", "aquiring rwlock_writer_lock.\n"); + DEBUG("netnodes_lock", "aquiring rwlock_writer_lock for %s.\n", path); rwlock_writer_lock(&fuse_netnodes_lock); nn->inode = fuse_next_inode ++; @@ -30,6 +30,7 @@ fuse_make_node(struct netnode *nn) { struct node *node; + DEBUG("fuse_make_node", "creating node for %s.\n", nn->path); DEBUG("netnode-lock", "locking netnode, path=%s\n", nn->path); mutex_lock(&nn->lock); @@ -39,6 +40,7 @@ fuse_make_node(struct netnode *nn) netfs_nref(node); mutex_unlock(&nn->lock); DEBUG("netnode-lock", "UNlocking netnode, path=%s\n", nn->path); + DEBUG("fuse_make_node", "reusing already existing node, %s.", nn->path); return node; } @@ -62,6 +64,6 @@ fuse_make_node(struct netnode *nn) mutex_unlock(&nn->lock); DEBUG("netnode-lock", "UNlocking netnode, path=%s\n", nn->path); - + DEBUG("fuse_make_node", "created a new node for %s.", nn->path); return node; } |