From: Christoph Hellwig Date: Sun, 18 Jan 2015 15:11:29 +0000 (+0100) Subject: scsi: annotate sdev_prefix_printk and scmd_printk as printf-like X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=6a806cbc1525e6f95e22173d9f54a7b75a2bb973;p=deliverable%2Flinux.git scsi: annotate sdev_prefix_printk and scmd_printk as printf-like Signed-off-by: Christoph Hellwig Reviewed-by: James Bottomley Reviewed-by: Ewan D. Milne Reviewed-by: Hannes Reinecke --- diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index d1aad4d04334..2e0281ee719c 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h @@ -237,14 +237,15 @@ struct scsi_dh_data { * like scmd_printk, but the device name is passed in * as a string pointer */ -extern int sdev_prefix_printk(const char *, const struct scsi_device *, - const char *, const char *, ...); +__printf(4, 5) int +sdev_prefix_printk(const char *, const struct scsi_device *, const char *, + const char *, ...); #define sdev_printk(l, sdev, fmt, a...) \ sdev_prefix_printk(l, sdev, NULL, fmt, ##a) -extern int scmd_printk(const char *, const struct scsi_cmnd *, - const char *, ...); +__printf(3, 4) int +scmd_printk(const char *, const struct scsi_cmnd *, const char *, ...); #define scmd_dbg(scmd, fmt, a...) \ do { \