浏览代码

fs/udf: Add printf format/argument verification

Add __attribute__((format... to udf_warning.

All arguments matched formats, no other changes necessary.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Joe Perches 14 年之前
父节点
当前提交
fab3c8581f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      fs/udf/udfdecl.h

+ 2 - 0
fs/udf/udfdecl.h

@@ -111,6 +111,8 @@ struct extent_position {
 };
 
 /* super.c */
+
+__attribute__((format(printf, 3, 4)))
 extern void udf_warning(struct super_block *, const char *, const char *, ...);
 static inline void udf_updated_lvid(struct super_block *sb)
 {