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/sg.c | |
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/sg.c')
-rw-r--r-- | drivers/scsi/sg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index fe44c14f551e..55cbc6689d27 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c | |||
@@ -219,8 +219,8 @@ static void sg_device_destroy(struct kref *kref); | |||
219 | #define SZ_SG_REQ_INFO sizeof(sg_req_info_t) | 219 | #define SZ_SG_REQ_INFO sizeof(sg_req_info_t) |
220 | 220 | ||
221 | #define sg_printk(prefix, sdp, fmt, a...) \ | 221 | #define sg_printk(prefix, sdp, fmt, a...) \ |
222 | sdev_printk(prefix, (sdp)->device, "[%s] " fmt, \ | 222 | sdev_prefix_printk(prefix, (sdp)->device, \ |
223 | (sdp)->disk->disk_name, ##a) | 223 | (sdp)->disk->disk_name, fmt, ##a) |
224 | 224 | ||
225 | static int sg_allow_access(struct file *filp, unsigned char *cmd) | 225 | static int sg_allow_access(struct file *filp, unsigned char *cmd) |
226 | { | 226 | { |