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>
This commit is contained in:

committed by
Christoph Hellwig

parent
f75ae8ed08
commit
22e0d99415
@@ -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 { \
|
||||
|
Reference in New Issue
Block a user