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/attributes.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/attributes.c')
-rw-r--r-- | fs/hfsplus/attributes.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/hfsplus/attributes.c b/fs/hfsplus/attributes.c index 8d691f124714..2043b50c5418 100644 --- a/fs/hfsplus/attributes.c +++ b/fs/hfsplus/attributes.c | |||
@@ -166,7 +166,7 @@ int hfsplus_find_attr(struct super_block *sb, u32 cnid, | |||
166 | { | 166 | { |
167 | int err = 0; | 167 | int err = 0; |
168 | 168 | ||
169 | dprint(DBG_ATTR_MOD, "find_attr: %s,%d\n", name ? name : NULL, cnid); | 169 | hfs_dbg(ATTR_MOD, "find_attr: %s,%d\n", name ? name : NULL, cnid); |
170 | 170 | ||
171 | if (!HFSPLUS_SB(sb)->attr_tree) { | 171 | if (!HFSPLUS_SB(sb)->attr_tree) { |
172 | printk(KERN_ERR "hfs: attributes file doesn't exist\n"); | 172 | printk(KERN_ERR "hfs: attributes file doesn't exist\n"); |
@@ -228,7 +228,7 @@ int hfsplus_create_attr(struct inode *inode, | |||
228 | int entry_size; | 228 | int entry_size; |
229 | int err; | 229 | int err; |
230 | 230 | ||
231 | dprint(DBG_ATTR_MOD, "create_attr: %s,%ld\n", | 231 | hfs_dbg(ATTR_MOD, "create_attr: %s,%ld\n", |
232 | name ? name : NULL, inode->i_ino); | 232 | name ? name : NULL, inode->i_ino); |
233 | 233 | ||
234 | if (!HFSPLUS_SB(sb)->attr_tree) { | 234 | if (!HFSPLUS_SB(sb)->attr_tree) { |
@@ -328,7 +328,7 @@ int hfsplus_delete_attr(struct inode *inode, const char *name) | |||
328 | struct super_block *sb = inode->i_sb; | 328 | struct super_block *sb = inode->i_sb; |
329 | struct hfs_find_data fd; | 329 | struct hfs_find_data fd; |
330 | 330 | ||
331 | dprint(DBG_ATTR_MOD, "delete_attr: %s,%ld\n", | 331 | hfs_dbg(ATTR_MOD, "delete_attr: %s,%ld\n", |
332 | name ? name : NULL, inode->i_ino); | 332 | name ? name : NULL, inode->i_ino); |
333 | 333 | ||
334 | if (!HFSPLUS_SB(sb)->attr_tree) { | 334 | if (!HFSPLUS_SB(sb)->attr_tree) { |
@@ -369,7 +369,7 @@ int hfsplus_delete_all_attrs(struct inode *dir, u32 cnid) | |||
369 | int err = 0; | 369 | int err = 0; |
370 | struct hfs_find_data fd; | 370 | struct hfs_find_data fd; |
371 | 371 | ||
372 | dprint(DBG_ATTR_MOD, "delete_all_attrs: %d\n", cnid); | 372 | hfs_dbg(ATTR_MOD, "delete_all_attrs: %d\n", cnid); |
373 | 373 | ||
374 | if (!HFSPLUS_SB(dir->i_sb)->attr_tree) { | 374 | if (!HFSPLUS_SB(dir->i_sb)->attr_tree) { |
375 | printk(KERN_ERR "hfs: attributes file doesn't exist\n"); | 375 | printk(KERN_ERR "hfs: attributes file doesn't exist\n"); |