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>
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;
}
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;
}
}