diff options
Diffstat (limited to 'drivers/ata/libata-eh.c')
-rw-r--r-- | drivers/ata/libata-eh.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index 748435807d6..52c85af7fe9 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c | |||
@@ -1443,15 +1443,10 @@ static void ata_eh_report(struct ata_port *ap) | |||
1443 | }; | 1443 | }; |
1444 | struct ata_queued_cmd *qc = __ata_qc_from_tag(ap, tag); | 1444 | struct ata_queued_cmd *qc = __ata_qc_from_tag(ap, tag); |
1445 | struct ata_taskfile *cmd = &qc->tf, *res = &qc->result_tf; | 1445 | struct ata_taskfile *cmd = &qc->tf, *res = &qc->result_tf; |
1446 | unsigned int nbytes; | ||
1447 | 1446 | ||
1448 | if (!(qc->flags & ATA_QCFLAG_FAILED) || !qc->err_mask) | 1447 | if (!(qc->flags & ATA_QCFLAG_FAILED) || !qc->err_mask) |
1449 | continue; | 1448 | continue; |
1450 | 1449 | ||
1451 | nbytes = qc->nbytes; | ||
1452 | if (!nbytes) | ||
1453 | nbytes = qc->nsect << 9; | ||
1454 | |||
1455 | ata_dev_printk(qc->dev, KERN_ERR, | 1450 | ata_dev_printk(qc->dev, KERN_ERR, |
1456 | "cmd %02x/%02x:%02x:%02x:%02x:%02x/%02x:%02x:%02x:%02x:%02x/%02x " | 1451 | "cmd %02x/%02x:%02x:%02x:%02x:%02x/%02x:%02x:%02x:%02x:%02x/%02x " |
1457 | "tag %d cdb 0x%x data %u %s\n " | 1452 | "tag %d cdb 0x%x data %u %s\n " |
@@ -1461,7 +1456,7 @@ static void ata_eh_report(struct ata_port *ap) | |||
1461 | cmd->lbal, cmd->lbam, cmd->lbah, | 1456 | cmd->lbal, cmd->lbam, cmd->lbah, |
1462 | cmd->hob_feature, cmd->hob_nsect, | 1457 | cmd->hob_feature, cmd->hob_nsect, |
1463 | cmd->hob_lbal, cmd->hob_lbam, cmd->hob_lbah, | 1458 | cmd->hob_lbal, cmd->hob_lbam, cmd->hob_lbah, |
1464 | cmd->device, qc->tag, qc->cdb[0], nbytes, | 1459 | cmd->device, qc->tag, qc->cdb[0], qc->nbytes, |
1465 | dma_str[qc->dma_dir], | 1460 | dma_str[qc->dma_dir], |
1466 | res->command, res->feature, res->nsect, | 1461 | res->command, res->feature, res->nsect, |
1467 | res->lbal, res->lbam, res->lbah, | 1462 | res->lbal, res->lbam, res->lbah, |