lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Wed,  9 Feb 2011 18:18:53 +0100
From:	Harald Hoyer <harald@...hat.com>
To:	linux-kernel@...r.kernel.org
Cc:	Harald Hoyer <harald@...hat.com>
Subject: [PATCH] drivers/scsi/ch.c: print real device name

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

Signed-off-by: Harald Hoyer <harald@...hat.com>
---
 drivers/scsi/ch.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/scsi/ch.c b/drivers/scsi/ch.c
index a15474e..21ce545 100644
--- a/drivers/scsi/ch.c
+++ b/drivers/scsi/ch.c
@@ -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:
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ