diff options
author | Theodore Ts'o <tytso@mit.edu> | 2010-06-29 11:07:07 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-06-29 11:07:07 -0400 |
commit | c67d859e39896e4286249da89c4ca0ef8bd949cb (patch) | |
tree | e483a8e61fe876506d8ed819fbfe29eac6c493a7 /fs/ext4/ext4.h | |
parent | 4a9cdec73f79b2858e9ecf0b6cfac7f6b200bf3a (diff) |
ext4: clean up ext4_abort() so __func__ is now implicit
Use a macro definition for ext4_abort() to clean up the .c files a wee
bit.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 3864a2775458..d8ec824f5a25 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -1629,8 +1629,10 @@ extern void ext4_error_inode(const char *, struct inode *, const char *, ...) | |||
1629 | extern void ext4_error_file(const char *, struct file *, const char *, ...) | 1629 | extern void ext4_error_file(const char *, struct file *, const char *, ...) |
1630 | __attribute__ ((format (printf, 3, 4))); | 1630 | __attribute__ ((format (printf, 3, 4))); |
1631 | extern void __ext4_std_error(struct super_block *, const char *, int); | 1631 | extern void __ext4_std_error(struct super_block *, const char *, int); |
1632 | extern void ext4_abort(struct super_block *, const char *, const char *, ...) | 1632 | extern void __ext4_abort(struct super_block *, const char *, const char *, ...) |
1633 | __attribute__ ((format (printf, 3, 4))); | 1633 | __attribute__ ((format (printf, 3, 4))); |
1634 | #define ext4_abort(sb, message...) __ext4_abort(sb, __func__, \ | ||
1635 | ## message) | ||
1634 | extern void __ext4_warning(struct super_block *, const char *, | 1636 | extern void __ext4_warning(struct super_block *, const char *, |
1635 | const char *, ...) | 1637 | const char *, ...) |
1636 | __attribute__ ((format (printf, 3, 4))); | 1638 | __attribute__ ((format (printf, 3, 4))); |