Skip to content

Commit

Permalink
[SCSI] ipr: Handle unknown errors
Browse files Browse the repository at this point in the history
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: Brian King <brking@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
brking@us.ibm.com authored and James Bottomley committed Nov 6, 2005
1 parent 6837c2b commit a9cfca9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/scsi/ipr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit a9cfca9

Please sign in to comment.