summaryrefslogtreecommitdiff
path: root/fs/adfs/adfs.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-08-09 01:22:26 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-09 02:57:24 +0400
commit19bdd41a57e1418b8661148125e9b6d99f468c1b (patch)
treeac4ee897befd5c00b73de284bd0fe97f4577b380 /fs/adfs/adfs.h
parentb16214d43d9060722360360f741416660b54c4f5 (diff)
downloadlinux-19bdd41a57e1418b8661148125e9b6d99f468c1b.tar.xz
adfs: add __printf verification, fix format/argument mismatches
Might as well do the right thing. Signed-off-by: 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/adfs/adfs.h')
-rw-r--r--fs/adfs/adfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/adfs/adfs.h b/fs/adfs/adfs.h
index c770337c4b45..24575d9d882d 100644
--- a/fs/adfs/adfs.h
+++ b/fs/adfs/adfs.h
@@ -153,6 +153,7 @@ extern int adfs_map_lookup(struct super_block *sb, unsigned int frag_id, unsigne
extern unsigned int adfs_map_free(struct super_block *sb);
/* Misc */
+__printf(3, 4)
void __adfs_error(struct super_block *sb, const char *function,
const char *fmt, ...);
#define adfs_error(sb, fmt...) __adfs_error(sb, __func__, fmt)