scsi: qedf: Add return value to log message if scsi_add_host fails
authorSaurav Kashyap <skashyap@marvell.com>
Mon, 22 Apr 2019 05:45:00 +0000 (22:45 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 29 Apr 2019 12:34:09 +0000 (08:34 -0400)
Print return value of scsi_add_host on failure.

Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_main.c

index ffe536e6e0e403ce7a7b29f8837bbd0753351bd6..5b07235497c697b16f17d7a8833f22dcf67a8937 100644 (file)
@@ -1763,7 +1763,8 @@ static int qedf_vport_create(struct fc_vport *vport, bool disabled)
 
        rc = scsi_add_host(vn_port->host, &vport->dev);
        if (rc) {
-               QEDF_WARN(&(base_qedf->dbg_ctx), "Error adding Scsi_Host.\n");
+               QEDF_WARN(&base_qedf->dbg_ctx,
+                         "Error adding Scsi_Host rc=0x%x.\n", rc);
                goto err2;
        }
 
@@ -3339,7 +3340,7 @@ static int __qedf_probe(struct pci_dev *pdev, int mode)
                rc = scsi_add_host(host, &pdev->dev);
                if (rc) {
                        QEDF_WARN(&qedf->dbg_ctx,
-                                 "Error adding Scsi_Host.\n");
+                                 "Error adding Scsi_Host rc=0x%x.\n", rc);
                        goto err6;
                }
        }