diff options
author | Saurav Kashyap <skashyap@marvell.com> | 2019-04-21 22:45:00 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-04-29 08:34:09 -0400 |
commit | 1e1ff604a3d1637f6cd890ee679a70ea2cf65050 (patch) | |
tree | 1095f05b0a40300d80a4eb97f0e8fbfe3135e466 /drivers | |
parent | 7fa4142d8bdc7a6255844ba2edfcca4f28805ab4 (diff) |
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: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/qedf/qedf_main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index ffe536e6e0e4..5b07235497c6 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; } } |