Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=cb94c1cf5a6beffbd8935eb91227df0dd1987644
Commit:     cb94c1cf5a6beffbd8935eb91227df0dd1987644
Parent:     1552945669b4fb23bff8d3b30221bfe3ade63515
Author:     Tejun Heo <[EMAIL PROTECTED]>
AuthorDate: Mon Jul 30 14:24:15 2007 +0900
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Fri Oct 12 14:55:34 2007 -0400

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 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 86cc049..b89d191 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,
 /*
  * ata_eh_info helpers
  */
-extern void __ata_ehi_push_desc(struct ata_eh_info *ehi, const char *fmt, ...);
-extern void ata_ehi_push_desc(struct ata_eh_info *ehi, const char *fmt, ...);
+extern void __ata_ehi_push_desc(struct ata_eh_info *ehi, const char *fmt, ...)
+       __attribute__ ((format (printf, 2, 3)));
+extern void ata_ehi_push_desc(struct ata_eh_info *ehi, const char *fmt, ...)
+       __attribute__ ((format (printf, 2, 3)));
 extern void ata_ehi_clear_desc(struct ata_eh_info *ehi);
 
 static inline void ata_ehi_schedule_probe(struct ata_eh_info *ehi)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to