Skip to contentSkip to conversation

drivers/scsi/ch.c: print real device name

PATCH New Harald Hoyer 1 participant 1 message Feb 9, 2011 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/scsi/ch.c: print real device name

Print the real name "sch[0-9]*" instead of "ch[0-9]".

---
 drivers/scsi/ch.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/scsi/ch.c +3 -3
index a15474e..21ce545 100644
@@ -87,12 +87,12 @@ static const char * vendor_labels[CH_TYPES-4] = {
 #define DPRINTK(fmt, arg...)						\
 do {									\
 	if (debug)							\
-		printk(KERN_DEBUG "%s: " fmt, ch->name, ##arg);		\
+		printk(KERN_DEBUG "s%s: " fmt, ch->name, ##arg);		\
 } while (0)
 #define VPRINTK(level, fmt, arg...)					\
 do {									\
 	if (verbose)							\
-		printk(level "%s: " fmt, ch->name, ##arg);		\
+		printk(level "s%s: " fmt, ch->name, ##arg);		\
 } while (0)
 
 /* ------------------------------------------------------------------- */
@@ -940,7 +940,7 @@ static int ch_probe(struct device *dev)
 		ch_init_elem(ch);
 
 	dev_set_drvdata(dev, ch);
-	sdev_printk(KERN_INFO, sd, "Attached scsi changer %s\n", ch->name);
+	sdev_printk(KERN_INFO, sd, "Attached scsi changer s%s\n", ch->name);
 
 	return 0;
 remove_idr: