diff mbox series

[11/12] qedf: Add return value to log message if scsi_add_host fails.

Message ID 20190422054501.3224-12-skashyap@marvell.com (mailing list archive)
State Mainlined
Commit 1e1ff604a3d1637f6cd890ee679a70ea2cf65050
Headers show
Series qedf: Changes to log messages | expand

Commit Message

Saurav Kashyap April 22, 2019, 5:45 a.m. UTC
- Print return value of scsi_add_host on failure.

Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
---
 drivers/scsi/qedf/qedf_main.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c
index ffe536e..5b07235 100644
--- a/drivers/scsi/qedf/qedf_main.c
+++ b/drivers/scsi/qedf/qedf_main.c
@@ -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;
 		}
 	}