Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9cfca96 authored by Brian King's avatar Brian King Committed by James Bottomley
Browse files

[SCSI] ipr: Handle unknown errors



Better handle errors received which are not known to the device driver.
Just dump the hex data so that we have a hope of figuring out what
went wrong.

Signed-off-by: default avatarBrian King <brking@us.ibm.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 6837c2bf
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -1157,12 +1157,8 @@ static void ipr_handle_log_data(struct ipr_ioa_cfg *ioa_cfg,
		ipr_log_array_error(ioa_cfg, hostrcb);
		break;
	case IPR_HOST_RCB_OVERLAY_ID_DEFAULT:
		ipr_log_generic_error(ioa_cfg, hostrcb);
		break;
	default:
		dev_err(&ioa_cfg->pdev->dev,
			"Unknown error received. Overlay ID: %d\n",
			hostrcb->hcam.overlay_id);
		ipr_log_generic_error(ioa_cfg, hostrcb);
		break;
	}
}