提交 6a806cbc 编写于 作者: C Christoph Hellwig

scsi: annotate sdev_prefix_printk and scmd_printk as printf-like

Signed-off-by: NChristoph Hellwig <hch@lst.de>
Reviewed-by: NJames Bottomley <JBottomley@Parallels.com>
Reviewed-by: NEwan D. Milne <emilne@redhat.com>
Reviewed-by: NHannes Reinecke <hare@suse.de>
上级 a13b0c9d
......@@ -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 { \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册