]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
scsi: annotate sdev_prefix_printk and scmd_printk as printf-like
authorChristoph Hellwig <hch@lst.de>
Sun, 18 Jan 2015 15:11:29 +0000 (16:11 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 20 Jan 2015 18:43:22 +0000 (19:43 +0100)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: James Bottomley <JBottomley@Parallels.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
include/scsi/scsi_device.h

index d1aad4d04334144b00e932043446b23b665e18b7..2e0281ee719cf3288486cd3056ff30255892fb2a 100644 (file)
@@ -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 {                                                               \