diff mbox series

[08/12] qedf: Log message if scsi_add_host fails.

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

Commit Message

Saurav Kashyap April 22, 2019, 5:44 a.m. UTC
- print message on scsi_add_host failure.

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

Patch

diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c
index a527b9b..e2f3228 100644
--- a/drivers/scsi/qedf/qedf_main.c
+++ b/drivers/scsi/qedf/qedf_main.c
@@ -3330,8 +3330,11 @@  static int __qedf_probe(struct pci_dev *pdev, int mode)
 		host->max_cmd_len = QEDF_MAX_CDB_LEN;
 		host->can_queue = FCOE_PARAMS_NUM_TASKS;
 		rc = scsi_add_host(host, &pdev->dev);
-		if (rc)
+		if (rc) {
+			QEDF_WARN(&qedf->dbg_ctx,
+				  "Error adding Scsi_Host.\n");
 			goto err6;
+		}
 	}
 
 	memset(&params, 0, sizeof(params));