Commit 6a806cbc authored by Christoph Hellwig's avatar Christoph Hellwig

scsi: annotate sdev_prefix_printk and scmd_printk as printf-like

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJames Bottomley <JBottomley@Parallels.com>
Reviewed-by: default avatarEwan D. Milne <emilne@redhat.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
parent a13b0c9d
...@@ -237,14 +237,15 @@ struct scsi_dh_data { ...@@ -237,14 +237,15 @@ struct scsi_dh_data {
* like scmd_printk, but the device name is passed in * like scmd_printk, but the device name is passed in
* as a string pointer * as a string pointer
*/ */
extern int sdev_prefix_printk(const char *, const struct scsi_device *, __printf(4, 5) int
const char *, const char *, ...); sdev_prefix_printk(const char *, const struct scsi_device *, const char *,
const char *, ...);
#define sdev_printk(l, sdev, fmt, a...) \ #define sdev_printk(l, sdev, fmt, a...) \
sdev_prefix_printk(l, sdev, NULL, fmt, ##a) sdev_prefix_printk(l, sdev, NULL, fmt, ##a)
extern int scmd_printk(const char *, const struct scsi_cmnd *, __printf(3, 4) int
const char *, ...); scmd_printk(const char *, const struct scsi_cmnd *, const char *, ...);
#define scmd_dbg(scmd, fmt, a...) \ #define scmd_dbg(scmd, fmt, a...) \
do { \ do { \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment