Skip to content

Commit

Permalink
fs/udf: Add printf format/argument verification
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joe Perches authored and Jan Kara committed Jan 6, 2011
1 parent ed2ae6f commit fab3c85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/udf/udfdecl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit fab3c85

Please sign in to comment.