]> err.no Git - linux-2.6/commitdiff
[SCSI] ipr: Handle unknown errors
authorbrking@us.ibm.com <brking@us.ibm.com>
Tue, 1 Nov 2005 23:00:41 +0000 (17:00 -0600)
committerJames Bottomley <jejb@mulgrave.(none)>
Sun, 6 Nov 2005 19:01:17 +0000 (13:01 -0600)
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>
drivers/scsi/ipr.c

index aa6e14b5ebb2467585cfb2fd1f8528a657f76080..40763b64e9eb1fcfd1dfa4702d033e2b2078bffb 100644 (file)
@@ -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;
        }
 }