diff options
author | Hannes Reinecke <hare@suse.de> | 2014-10-24 08:26:44 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-12 05:15:57 -0500 |
commit | 22e0d994151c3eac183625f8c1400c0c83ac414f (patch) | |
tree | e56b40c34245c0a4ef831826c9e76d1aa0459a92 /drivers/scsi/sr.h | |
parent | f75ae8ed0853e62dff70f4d0229f8d57228c84bd (diff) |
scsi: introduce sdev_prefix_printk()
Like scmd_printk(), but the device name is passed in as
a string. Can be used by eg ULDs which do not have access
to the scsi_cmnd structure.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/sr.h')
-rw-r--r-- | drivers/scsi/sr.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/sr.h b/drivers/scsi/sr.h index 1d1f6f416c59..1de33719ad8e 100644 --- a/drivers/scsi/sr.h +++ b/drivers/scsi/sr.h | |||
@@ -57,8 +57,7 @@ typedef struct scsi_cd { | |||
57 | } Scsi_CD; | 57 | } Scsi_CD; |
58 | 58 | ||
59 | #define sr_printk(prefix, cd, fmt, a...) \ | 59 | #define sr_printk(prefix, cd, fmt, a...) \ |
60 | sdev_printk(prefix, (cd)->device, "[%s] " fmt, \ | 60 | sdev_prefix_printk(prefix, (cd)->device, (cd)->cdi.name, fmt, ##a) |
61 | (cd)->cdi.name, ##a) | ||
62 | 61 | ||
63 | int sr_do_ioctl(Scsi_CD *, struct packet_command *); | 62 | int sr_do_ioctl(Scsi_CD *, struct packet_command *); |
64 | 63 | ||