[SCSI] qla2xxx: Drop noisy 'UNDERRUN' status message.
There's no point in displaying the message during a valid underrun case. Limit the message to potentially problematic cases. Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
parent
9403688e9b
commit
e038a1be22
1 changed files with 6 additions and 5 deletions
|
@ -963,15 +963,16 @@ qla2x00_status_entry(scsi_qla_host_t *ha, void *pkt)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CS_DATA_UNDERRUN:
|
case CS_DATA_UNDERRUN:
|
||||||
DEBUG2(printk(KERN_INFO
|
|
||||||
"scsi(%ld:%d:%d) UNDERRUN status detected 0x%x-0x%x.\n",
|
|
||||||
ha->host_no, cp->device->id, cp->device->lun, comp_status,
|
|
||||||
scsi_status));
|
|
||||||
|
|
||||||
resid = resid_len;
|
resid = resid_len;
|
||||||
if (scsi_status & SS_RESIDUAL_UNDER) {
|
if (scsi_status & SS_RESIDUAL_UNDER) {
|
||||||
cp->resid = resid;
|
cp->resid = resid;
|
||||||
CMD_RESID_LEN(cp) = resid;
|
CMD_RESID_LEN(cp) = resid;
|
||||||
|
} else {
|
||||||
|
DEBUG2(printk(KERN_INFO
|
||||||
|
"scsi(%ld:%d:%d) UNDERRUN status detected "
|
||||||
|
"0x%x-0x%x.\n", ha->host_no, cp->device->id,
|
||||||
|
cp->device->lun, comp_status, scsi_status));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue