summaryrefslogtreecommitdiff
path: root/drivers/scsi/qedf
diff options
context:
space:
mode:
authorSaurav Kashyap <skashyap@marvell.com>2019-04-21 22:44:57 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2019-04-29 08:34:09 -0400
commit249b148f3620577c923894dfab5a75cb59c024eb (patch)
tree969d802c63133fc5378e52589394d4e27b9c6a77 /drivers/scsi/qedf
parentf4eecabe743a6aca463bae85c5f9551cfe9d4870 (diff)
scsi: qedf: Log message if scsi_add_host fails
Print message on scsi_add_host failure. Signed-off-by: Saurav Kashyap <skashyap@marvell.com> Signed-off-by: Chad Dupuis <cdupuis@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qedf')
-rw-r--r--drivers/scsi/qedf/qedf_main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c
index a527b9b1f9af..e2f3228f15a6 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));