diff options
author | Joe Perches <joe@perches.com> | 2010-11-10 18:46:18 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2011-01-06 11:03:54 -0500 |
commit | fab3c8581fc49998f8d0d349b70813d9712fb405 (patch) | |
tree | 12d50f6e7978a530787d4fb289988dd88adf5337 /fs/udf | |
parent | ed2ae6f69148dcf9da725364e17184f27ba04dc2 (diff) |
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>
Diffstat (limited to 'fs/udf')
-rw-r--r-- | fs/udf/udfdecl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/udf/udfdecl.h b/fs/udf/udfdecl.h index 6995ab1f4305..74d58c08ebac 100644 --- a/fs/udf/udfdecl.h +++ b/fs/udf/udfdecl.h | |||
@@ -111,6 +111,8 @@ struct extent_position { | |||
111 | }; | 111 | }; |
112 | 112 | ||
113 | /* super.c */ | 113 | /* super.c */ |
114 | |||
115 | __attribute__((format(printf, 3, 4))) | ||
114 | extern void udf_warning(struct super_block *, const char *, const char *, ...); | 116 | extern void udf_warning(struct super_block *, const char *, const char *, ...); |
115 | static inline void udf_updated_lvid(struct super_block *sb) | 117 | static inline void udf_updated_lvid(struct super_block *sb) |
116 | { | 118 | { |