diff options
author | Eric Sandeen <sandeen@redhat.com> | 2010-02-15 14:19:27 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-02-15 14:19:27 -0500 |
commit | 12062dddda450976b129dcb1bacd91acaf4d8030 (patch) | |
tree | e64590b1147639cd3629f8a977b269410cd6bd13 /fs/ext4/ext4.h | |
parent | f710b4b96ba292dfed2153afc47e9063b0abfd89 (diff) |
ext4: move __func__ into a macro for ext4_warning, ext4_error
Just a pet peeve of mine; we had a mishash of calls with either __func__
or "function_name" and the latter tends to get out of sync.
I think it's easier to just hide the __func__ in a macro, and it'll
be consistent from then on.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 61cf3b3cde4e..509437ffb71b 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -1486,13 +1486,16 @@ extern int ext4_group_extend(struct super_block *sb, | |||
1486 | ext4_fsblk_t n_blocks_count); | 1486 | ext4_fsblk_t n_blocks_count); |
1487 | 1487 | ||
1488 | /* super.c */ | 1488 | /* super.c */ |
1489 | extern void ext4_error(struct super_block *, const char *, const char *, ...) | 1489 | extern void __ext4_error(struct super_block *, const char *, const char *, ...) |
1490 | __attribute__ ((format (printf, 3, 4))); | 1490 | __attribute__ ((format (printf, 3, 4))); |
1491 | #define ext4_error(sb, message...) __ext4_error(sb, __func__, ## message) | ||
1491 | extern void __ext4_std_error(struct super_block *, const char *, int); | 1492 | extern void __ext4_std_error(struct super_block *, const char *, int); |
1492 | extern void ext4_abort(struct super_block *, const char *, const char *, ...) | 1493 | extern void ext4_abort(struct super_block *, const char *, const char *, ...) |
1493 | __attribute__ ((format (printf, 3, 4))); | 1494 | __attribute__ ((format (printf, 3, 4))); |
1494 | extern void ext4_warning(struct super_block *, const char *, const char *, ...) | 1495 | extern void __ext4_warning(struct super_block *, const char *, |
1496 | const char *, ...) | ||
1495 | __attribute__ ((format (printf, 3, 4))); | 1497 | __attribute__ ((format (printf, 3, 4))); |
1498 | #define ext4_warning(sb, message...) __ext4_warning(sb, __func__, ## message) | ||
1496 | extern void ext4_msg(struct super_block *, const char *, const char *, ...) | 1499 | extern void ext4_msg(struct super_block *, const char *, const char *, ...) |
1497 | __attribute__ ((format (printf, 3, 4))); | 1500 | __attribute__ ((format (printf, 3, 4))); |
1498 | extern void ext4_grp_locked_error(struct super_block *, ext4_group_t, | 1501 | extern void ext4_grp_locked_error(struct super_block *, ext4_group_t, |