diff options
author | Joe Perches <joe@perches.com> | 2013-04-30 18:27:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-30 20:04:05 -0400 |
commit | c2b3e1f76e5c90215bc7f740b376c0220eb8a8e3 (patch) | |
tree | 4ffbb3029d06909e05621ebb96b66052640f3ff7 /fs/hfsplus/bfind.c | |
parent | 5f3726f9457d5a863721353786e3395cdbd0f943 (diff) |
hfs/hfsplus: convert dprint to hfs_dbg
Use a more current logging style.
Rename macro and uses.
Add do {} while (0) to macro.
Add DBG_ to macro.
Add and use hfs_dbg_cont variant where appropriate.
Signed-off-by: Joe Perches <joe@perches.com>
Cc: Vyacheslav Dubeyko <slava@dubeyko.com>
Cc: Hin-Tak Leung <htl10@users.sourceforge.net>
Cc: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/hfsplus/bfind.c')
-rw-r--r-- | fs/hfsplus/bfind.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/hfsplus/bfind.c b/fs/hfsplus/bfind.c index bbfdc1707725..d27f37f04ffc 100644 --- a/fs/hfsplus/bfind.c +++ b/fs/hfsplus/bfind.c | |||
@@ -22,7 +22,7 @@ int hfs_find_init(struct hfs_btree *tree, struct hfs_find_data *fd) | |||
22 | return -ENOMEM; | 22 | return -ENOMEM; |
23 | fd->search_key = ptr; | 23 | fd->search_key = ptr; |
24 | fd->key = ptr + tree->max_key_len + 2; | 24 | fd->key = ptr + tree->max_key_len + 2; |
25 | dprint(DBG_BNODE_REFS, "find_init: %d (%p)\n", | 25 | hfs_dbg(BNODE_REFS, "find_init: %d (%p)\n", |
26 | tree->cnid, __builtin_return_address(0)); | 26 | tree->cnid, __builtin_return_address(0)); |
27 | switch (tree->cnid) { | 27 | switch (tree->cnid) { |
28 | case HFSPLUS_CAT_CNID: | 28 | case HFSPLUS_CAT_CNID: |
@@ -44,7 +44,7 @@ void hfs_find_exit(struct hfs_find_data *fd) | |||
44 | { | 44 | { |
45 | hfs_bnode_put(fd->bnode); | 45 | hfs_bnode_put(fd->bnode); |
46 | kfree(fd->search_key); | 46 | kfree(fd->search_key); |
47 | dprint(DBG_BNODE_REFS, "find_exit: %d (%p)\n", | 47 | hfs_dbg(BNODE_REFS, "find_exit: %d (%p)\n", |
48 | fd->tree->cnid, __builtin_return_address(0)); | 48 | fd->tree->cnid, __builtin_return_address(0)); |
49 | mutex_unlock(&fd->tree->tree_lock); | 49 | mutex_unlock(&fd->tree->tree_lock); |
50 | fd->tree = NULL; | 50 | fd->tree = NULL; |