diff options
| -rw-r--r-- | drivers/ata/libata-scsi.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index b96e3b71434d..bb57d81083ca 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c | |||
| @@ -799,26 +799,27 @@ static void ata_dump_status(unsigned id, struct ata_taskfile *tf) | |||
| 799 | if (stat & ATA_BUSY) { | 799 | if (stat & ATA_BUSY) { |
| 800 | printk("Busy }\n"); /* Data is not valid in this case */ | 800 | printk("Busy }\n"); /* Data is not valid in this case */ |
| 801 | } else { | 801 | } else { |
| 802 | if (stat & 0x40) printk("DriveReady "); | 802 | if (stat & ATA_DRDY) printk("DriveReady "); |
| 803 | if (stat & 0x20) printk("DeviceFault "); | 803 | if (stat & ATA_DF) printk("DeviceFault "); |
| 804 | if (stat & 0x10) printk("SeekComplete "); | 804 | if (stat & ATA_DSC) printk("SeekComplete "); |
| 805 | if (stat & 0x08) printk("DataRequest "); | 805 | if (stat & ATA_DRQ) printk("DataRequest "); |
| 806 | if (stat & 0x04) printk("CorrectedError "); | 806 | if (stat & ATA_CORR) printk("CorrectedError "); |
| 807 | if (stat & 0x02) printk("Sense "); | 807 | if (stat & ATA_SENSE) printk("Sense "); |
| 808 | if (stat & 0x01) printk("Error "); | 808 | if (stat & ATA_ERR) printk("Error "); |
| 809 | printk("}\n"); | 809 | printk("}\n"); |
| 810 | 810 | ||
| 811 | if (err) { | 811 | if (err) { |
| 812 | printk(KERN_WARNING "ata%u: error=0x%02x { ", id, err); | 812 | printk(KERN_WARNING "ata%u: error=0x%02x { ", id, err); |
| 813 | if (err & 0x04) printk("DriveStatusError "); | 813 | if (err & ATA_ABORTED) printk("DriveStatusError "); |
| 814 | if (err & 0x80) { | 814 | if (err & ATA_ICRC) { |
| 815 | if (err & 0x04) printk("BadCRC "); | 815 | if (err & ATA_ABORTED) |
| 816 | printk("BadCRC "); | ||
| 816 | else printk("Sector "); | 817 | else printk("Sector "); |
| 817 | } | 818 | } |
| 818 | if (err & 0x40) printk("UncorrectableError "); | 819 | if (err & ATA_UNC) printk("UncorrectableError "); |
| 819 | if (err & 0x10) printk("SectorIdNotFound "); | 820 | if (err & ATA_IDNF) printk("SectorIdNotFound "); |
| 820 | if (err & 0x02) printk("TrackZeroNotFound "); | 821 | if (err & ATA_TRK0NF) printk("TrackZeroNotFound "); |
| 821 | if (err & 0x01) printk("AddrMarkNotFound "); | 822 | if (err & ATA_AMNF) printk("AddrMarkNotFound "); |
| 822 | printk("}\n"); | 823 | printk("}\n"); |
| 823 | } | 824 | } |
| 824 | } | 825 | } |
