mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Harald Hoyer <harald@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: Harald Hoyer <harald@redhat.com>
Subject: [PATCH] drivers/scsi/ch.c: print real device name
Date: Wed,  9 Feb 2011 18:18:53 +0100	[thread overview]
Message-ID: <1297271933-16804-1-git-send-email-harald@redhat.com> (raw)

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

Signed-off-by: Harald Hoyer <harald@redhat.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:

                 reply	other threads:[~2011-02-09 17:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1297271933-16804-1-git-send-email-harald@redhat.com \
    --to=harald@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®