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/hfsplus_fs.h | |
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/hfsplus_fs.h')
-rw-r--r-- | fs/hfsplus/hfsplus_fs.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/fs/hfsplus/hfsplus_fs.h b/fs/hfsplus/hfsplus_fs.h index 05b11f36024c..910ea98e92df 100644 --- a/fs/hfsplus/hfsplus_fs.h +++ b/fs/hfsplus/hfsplus_fs.h | |||
@@ -32,9 +32,17 @@ | |||
32 | #endif | 32 | #endif |
33 | #define DBG_MASK (0) | 33 | #define DBG_MASK (0) |
34 | 34 | ||
35 | #define dprint(flg, fmt, args...) \ | 35 | #define hfs_dbg(flg, fmt, ...) \ |
36 | if (flg & DBG_MASK) \ | 36 | do { \ |
37 | printk(fmt , ## args) | 37 | if (DBG_##flg & DBG_MASK) \ |
38 | printk(KERN_DEBUG fmt, ##__VA_ARGS__); \ | ||
39 | } while (0) | ||
40 | |||
41 | #define hfs_dbg_cont(flg, fmt, ...) \ | ||
42 | do { \ | ||
43 | if (DBG_##flg & DBG_MASK) \ | ||
44 | printk(KERN_CONT fmt, ##__VA_ARGS__); \ | ||
45 | } while (0) | ||
38 | 46 | ||
39 | /* Runtime config options */ | 47 | /* Runtime config options */ |
40 | #define HFSPLUS_DEF_CR_TYPE 0x3F3F3F3F /* '????' */ | 48 | #define HFSPLUS_DEF_CR_TYPE 0x3F3F3F3F /* '????' */ |