diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-12-12 19:57:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-13 15:42:51 -0500 |
commit | 1ee54b099acecb928bc76ea4beca668697b4a4d0 (patch) | |
tree | fc2a748e4f703bde9ab50b061eb4e79bcf03cf6b /fs/affs/affs.h | |
parent | 7633978b43ebe3ec4759ef069acd7bf3d743b79c (diff) |
fs/affs/amigaffs.c: use va_format instead of buffer/vnsprintf
-Remove ErrorBuffer and use %pV
-Add __printf to enable argument mistmatch warnings
Original patch by Joe Perches.
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/affs/affs.h')
-rw-r--r-- | fs/affs/affs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/affs/affs.h b/fs/affs/affs.h index 9bca88159725..ff44ff3ff015 100644 --- a/fs/affs/affs.h +++ b/fs/affs/affs.h | |||
@@ -135,8 +135,10 @@ extern void affs_fix_checksum(struct super_block *sb, struct buffer_head *bh); | |||
135 | extern void secs_to_datestamp(time_t secs, struct affs_date *ds); | 135 | extern void secs_to_datestamp(time_t secs, struct affs_date *ds); |
136 | extern umode_t prot_to_mode(u32 prot); | 136 | extern umode_t prot_to_mode(u32 prot); |
137 | extern void mode_to_prot(struct inode *inode); | 137 | extern void mode_to_prot(struct inode *inode); |
138 | __printf(3, 4) | ||
138 | extern void affs_error(struct super_block *sb, const char *function, | 139 | extern void affs_error(struct super_block *sb, const char *function, |
139 | const char *fmt, ...); | 140 | const char *fmt, ...); |
141 | __printf(3, 4) | ||
140 | extern void affs_warning(struct super_block *sb, const char *function, | 142 | extern void affs_warning(struct super_block *sb, const char *function, |
141 | const char *fmt, ...); | 143 | const char *fmt, ...); |
142 | extern bool affs_nofilenametruncate(const struct dentry *dentry); | 144 | extern bool affs_nofilenametruncate(const struct dentry *dentry); |