summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ch.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2014-10-24 14:26:44 +0200
committerChristoph Hellwig <hch@lst.de>2014-11-12 11:15:57 +0100
commit22e0d994151c3eac183625f8c1400c0c83ac414f (patch)
treee56b40c34245c0a4ef831826c9e76d1aa0459a92 /drivers/scsi/ch.c
parentf75ae8ed0853e62dff70f4d0229f8d57228c84bd (diff)
downloadop-kernel-dev-22e0d994151c3eac183625f8c1400c0c83ac414f.zip
op-kernel-dev-22e0d994151c3eac183625f8c1400c0c83ac414f.tar.gz
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/ch.c')
-rw-r--r--drivers/scsi/ch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/ch.c b/drivers/scsi/ch.c
index ef5ae0d..52060e7 100644
--- a/drivers/scsi/ch.c
+++ b/drivers/scsi/ch.c
@@ -85,8 +85,7 @@ static const char * vendor_labels[CH_TYPES-4] = {
// module_param_string_array(vendor_labels, NULL, 0444);
#define ch_printk(prefix, ch, fmt, a...) \
- sdev_printk(prefix, (ch)->device, "[%s] " fmt, \
- (ch)->name, ##a)
+ sdev_prefix_printk(prefix, (ch)->device, (ch)->name, fmt, ##a)
#define DPRINTK(fmt, arg...) \
do { \
OpenPOWER on IntegriCloud