Commit 1e1ff604 authored by Saurav Kashyap's avatar Saurav Kashyap Committed by Martin K. Petersen

scsi: qedf: Add return value to log message if scsi_add_host fails

Print return value of scsi_add_host on failure.
Signed-off-by: default avatarSaurav Kashyap <skashyap@marvell.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 7fa4142d
......@@ -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;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment