summaryrefslogtreecommitdiff
path: root/fs/udf/udfdecl.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-11-10 15:46:18 -0800
committerJan Kara <jack@suse.cz>2011-01-06 17:03:54 +0100
commitfab3c8581fc49998f8d0d349b70813d9712fb405 (patch)
tree12d50f6e7978a530787d4fb289988dd88adf5337 /fs/udf/udfdecl.h
parented2ae6f69148dcf9da725364e17184f27ba04dc2 (diff)
downloadlwn-fab3c8581fc49998f8d0d349b70813d9712fb405.tar.gz
lwn-fab3c8581fc49998f8d0d349b70813d9712fb405.zip
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/udfdecl.h')
-rw-r--r--fs/udf/udfdecl.h2
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 {
};
/* 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)
{