scsi_debug: error message should say scsi_host_alloc not scsi_register
authorFinn Thain <fthain@telegraphics.com.au>
Fri, 3 Oct 2014 01:43:31 +0000 (11:43 +1000)
committerChristoph Hellwig <hch@lst.de>
Wed, 12 Nov 2014 10:31:58 +0000 (11:31 +0100)
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/scsi_debug.c

index b02571390d01de63558051099e26c17a440f0bd8..fce393f3e7e05883676aaae0a7f72f488636f26b 100644 (file)
@@ -4592,7 +4592,7 @@ static int sdebug_driver_probe(struct device * dev)
                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;
        }