Discussion:
[PATCH] scsi_debug: Error message should say scsi_host_alloc not scsi_register
(too old to reply)
Finn Thain
2014-10-03 01:43:31 UTC
Permalink
Raw Message
Signed-off-by: Finn Thain <***@telegraphics.com.au>

---
drivers/scsi/scsi_debug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux/drivers/scsi/scsi_debug.c
===================================================================
--- linux.orig/drivers/scsi/scsi_debug.c 2014-09-29 10:55:44.000000000 +1000
+++ linux/drivers/scsi/scsi_debug.c 2014-10-01 16:33:23.000000000 +1000
@@ -3967,7 +3967,7 @@ static int sdebug_driver_probe(struct de
sdebug_driver_template.use_clustering = ENABLE_CLUSTERING;
hpnt = scsi_host_alloc(&sdebug_driver_template, sizeof(sdbg_host));
if (NULL == hpnt) {
- printk(KERN_ERR "%s: scsi_register failed\n", __func__);
+ pr_err("%s: scsi_host_alloc failed\n", __func__);
error = -ENODEV;
return error;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Douglas Gilbert
2014-10-03 16:02:36 UTC
Permalink
Raw Message
Post by Finn Thain
---
drivers/scsi/scsi_debug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux/drivers/scsi/scsi_debug.c
===================================================================
--- linux.orig/drivers/scsi/scsi_debug.c 2014-09-29 10:55:44.000000000 +1000
+++ linux/drivers/scsi/scsi_debug.c 2014-10-01 16:33:23.000000000 +1000
@@ -3967,7 +3967,7 @@ static int sdebug_driver_probe(struct de
sdebug_driver_template.use_clustering = ENABLE_CLUSTERING;
hpnt = scsi_host_alloc(&sdebug_driver_template, sizeof(sdbg_host));
if (NULL == hpnt) {
- printk(KERN_ERR "%s: scsi_register failed\n", __func__);
+ pr_err("%s: scsi_host_alloc failed\n", __func__);
error = -ENODEV;
return error;
}
--
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Christoph Hellwig
2014-10-23 17:13:40 UTC
Permalink
Raw Message
Thanks,

applied to the drivers-for-3.19 branch.
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Loading...