From: Hannes Reinecke <hare@suse.de>
To: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>,
linux-scsi@vger.kernel.org
Subject: Re: [PATCH] Make errors printed from scsi_sysfs_add_sdev() mean something.
Date: Mon, 12 Jan 2009 13:30:00 +0100 [thread overview]
Message-ID: <496B37C8.3010705@suse.de> (raw)
In-Reply-To: <20081223221859.GA541@rere.qmqm.pl>
Hi Michal,
Michał Mirosław wrote:
> This is an updated version of patch I wrote long time ago, but looks like
> it didn't get far. Patch against linux-2.6.git. And yes - printk() lines
> are longer than 80 chars - it shouldn't matter here (grep is happy ;).
>
> Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
>
> diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c
> index 93c28f3..7a3389c 100644
> --- a/drivers/scsi/scsi_sysfs.c
> +++ b/drivers/scsi/scsi_sysfs.c
> @@ -872,12 +872,12 @@ int scsi_sysfs_add_sdev(struct scsi_device *sdev)
> error = device_add(&sdev->sdev_gendev);
> if (error) {
> put_device(sdev->sdev_gendev.parent);
> - printk(KERN_INFO "error 1\n");
> + printk(KERN_ERR "sysfs: SCSI device registration failed: %d\n", error);
Shouldn't that be sdev_printk()?
> return error;
> }
> error = device_add(&sdev->sdev_dev);
> if (error) {
> - printk(KERN_INFO "error 2\n");
> + printk(KERN_ERR "sysfs: SCSI class device registration failed: %d\n", error);
Same here ...
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-01-12 12:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-23 22:19 [PATCH] Make errors printed from scsi_sysfs_add_sdev() mean something Michał Mirosław
2009-01-12 12:30 ` Hannes Reinecke [this message]
2009-01-12 13:06 ` Stefan Richter
2009-01-12 14:04 ` Hannes Reinecke
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=496B37C8.3010705@suse.de \
--to=hare@suse.de \
--cc=James.Bottomley@HansenPartnership.com \
--cc=linux-scsi@vger.kernel.org \
--cc=mirq-linux@rere.qmqm.pl \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.