diff options
author | Tejun Heo <htejun@gmail.com> | 2007-07-30 01:24:15 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-12 14:55:34 -0400 |
commit | cb94c1cf5a6beffbd8935eb91227df0dd1987644 (patch) | |
tree | 2466729967ea54b176f966b0c08a762a0f8a5c10 /include/linux/libata.h | |
parent | 1552945669b4fb23bff8d3b30221bfe3ade63515 (diff) |
libata: add printf format attribute to ehi desc functions
Tell the compiler that [__]ata_ehi_push_desc() functions take printf
style format string and arguments.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r-- | include/linux/libata.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 86cc0491b35e..b89d191ceb2b 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -948,8 +948,10 @@ extern void ata_do_eh(struct ata_port *ap, ata_prereset_fn_t prereset, | |||
948 | /* | 948 | /* |
949 | * ata_eh_info helpers | 949 | * ata_eh_info helpers |
950 | */ | 950 | */ |
951 | extern void __ata_ehi_push_desc(struct ata_eh_info *ehi, const char *fmt, ...); | 951 | extern void __ata_ehi_push_desc(struct ata_eh_info *ehi, const char *fmt, ...) |
952 | extern void ata_ehi_push_desc(struct ata_eh_info *ehi, const char *fmt, ...); | 952 | __attribute__ ((format (printf, 2, 3))); |
953 | extern void ata_ehi_push_desc(struct ata_eh_info *ehi, const char *fmt, ...) | ||
954 | __attribute__ ((format (printf, 2, 3))); | ||
953 | extern void ata_ehi_clear_desc(struct ata_eh_info *ehi); | 955 | extern void ata_ehi_clear_desc(struct ata_eh_info *ehi); |
954 | 956 | ||
955 | static inline void ata_ehi_schedule_probe(struct ata_eh_info *ehi) | 957 | static inline void ata_ehi_schedule_probe(struct ata_eh_info *ehi) |