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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



- print message on scsi_add_host failure.

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

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));
-- 
1.8.3.1




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux