Commit b06fc73a authored by Mike Christie's avatar Mike Christie Committed by James Bottomley

[SCSI] qla4xxx: Removed residual from overrun debug print

The residual variable is only valid for udnerrun so do
not print it out for the overrun case.
Signed-off-by: default avatarKaren Higgins <karen.higgins@qlogic.com>
[Mike Christie: Fix coding style issues in patch]
Signed-off-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 8afa1439
...@@ -227,11 +227,11 @@ static void qla4xxx_status_entry(struct scsi_qla_host *ha, ...@@ -227,11 +227,11 @@ static void qla4xxx_status_entry(struct scsi_qla_host *ha,
case SCS_DATA_UNDERRUN: case SCS_DATA_UNDERRUN:
case SCS_DATA_OVERRUN: case SCS_DATA_OVERRUN:
if ((sts_entry->iscsiFlags & ISCSI_FLAG_RESIDUAL_OVER) || if ((sts_entry->iscsiFlags & ISCSI_FLAG_RESIDUAL_OVER) ||
(sts_entry->completionStatus == SCS_DATA_OVERRUN)) { (sts_entry->completionStatus == SCS_DATA_OVERRUN)) {
DEBUG2(printk("scsi%ld:%d:%d:%d: %s: " "Data overrun, " DEBUG2(printk("scsi%ld:%d:%d:%d: %s: " "Data overrun\n",
"residual = 0x%x\n", ha->host_no, ha->host_no,
cmd->device->channel, cmd->device->id, cmd->device->channel, cmd->device->id,
cmd->device->lun, __func__, residual)); cmd->device->lun, __func__));
cmd->result = DID_ERROR << 16; cmd->result = DID_ERROR << 16;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment