adfs: add __printf verification, fix format/argument mismatches
[firefly-linux-kernel-4.4.55.git] / fs / adfs / adfs.h
index c770337c4b458beefc707a91fb8c9f7315d0634b..24575d9d882d99e790f97d351ddfac369c616603 100644 (file)
@@ -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)