Changeset 12551 in vbox for trunk/src/VBox/Devices/Storage/DevATA.cpp
- Timestamp:
- Sep 17, 2008 6:58:37 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevATA.cpp
r12508 r12551 1223 1223 static void atapiCmdError(ATADevState *s, const uint8_t *pabATAPISense, size_t cbATAPISense) 1224 1224 { 1225 Log(("%s: sense=%#x asc=%#x\n", __FUNCTION__, pabATAPISense[2] & 0x0f, pabATAPISense[12])); 1225 Log(("%s: sense=%#x (%s) asc=%#x ascq=%#x (%s)\n", __FUNCTION__, pabATAPISense[2] & 0x0f, SCSISenseText(pabATAPISense[2] & 0x0f), 1226 pabATAPISense[12], pabATAPISense[13], SCSISenseExtText(pabATAPISense[12], pabATAPISense[13]))); 1226 1227 s->uATARegError = pabATAPISense[2] << 4; 1227 1228 ataSetStatusValue(s, ATA_STAT_READY | ATA_STAT_ERR); … … 1597 1598 break; 1598 1599 s->cErrors++; 1599 LogRel(("PIIX3 ATA: LUN#%d: CD-ROM passthrough command (%#04x) error %d %Rrc\n", s->iLUN, u8Cmd, abATAPISense[2] & 0x0f, rc)); 1600 LogRel(("PIIX3 ATA: LUN#%d: CD-ROM passthrough cmd=%#04x sense=%d ASC=%#02x ASCQ=%#02x %Rrc\n", 1601 s->iLUN, u8Cmd, abATAPISense[2] & 0x0f, abATAPISense[12], abATAPISense[13], rc)); 1600 1602 } while (0); 1601 1603 } … … 2670 2672 pbPacket = s->aATAPICmd; 2671 2673 #ifdef DEBUG 2672 Log(("%s: LUN#%d DMA=%d CMD=%#04x \"%s\"\n", __FUNCTION__, s->iLUN, s->fDMA, pbPacket[0], g_apszSCSICmdNames[pbPacket[0]]));2674 Log(("%s: LUN#%d DMA=%d CMD=%#04x \"%s\"\n", __FUNCTION__, s->iLUN, s->fDMA, pbPacket[0], SCSICmdText(pbPacket[0]))); 2673 2675 #else /* !DEBUG */ 2674 2676 Log(("%s: LUN#%d DMA=%d CMD=%#04x\n", __FUNCTION__, s->iLUN, s->fDMA, pbPacket[0])); … … 2784 2786 { 2785 2787 #ifdef DEBUG 2786 Log(("%s: LUN#%d CMD=%#04x \"%s\"\n", __FUNCTION__, s->iLUN, cmd, g_apszATACmdNames[cmd]));2788 Log(("%s: LUN#%d CMD=%#04x \"%s\"\n", __FUNCTION__, s->iLUN, cmd, ATACmdText(cmd))); 2787 2789 #else /* !DEBUG */ 2788 2790 Log(("%s: LUN#%d CMD=%#04x\n", __FUNCTION__, s->iLUN, cmd));
Note:
See TracChangeset
for help on using the changeset viewer.