From: Tejun Heo Subject: [PATCH libata-dev#upstream 2/3] libata: add printf format attribute to ehi desc functions Date: Mon, 30 Jul 2007 14:24:15 +0900 Message-ID: <20070730052415.GI22374@htj.dyndns.org> References: <20070730052303.GH22374@htj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from rv-out-0910.google.com ([209.85.198.191]:7260 "EHLO rv-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760731AbXG3FYU (ORCPT ); Mon, 30 Jul 2007 01:24:20 -0400 Received: by rv-out-0910.google.com with SMTP id k20so337218rvb for ; Sun, 29 Jul 2007 22:24:19 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20070730052303.GH22374@htj.dyndns.org> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Jeff Garzik , Alan Cox , linux-ide@vger.kernel.org Tell the compiler that [__]ata_ehi_push_desc() functions take printf style format string and arguments. Signed-off-by: Tejun Heo --- include/linux/libata.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) Index: work/include/linux/libata.h =================================================================== --- work.orig/include/linux/libata.h +++ work/include/linux/libata.h @@ -914,8 +914,10 @@ extern void ata_do_eh(struct ata_port *a /* * 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)