Changeset 48399 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Sep 10, 2013 8:36:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevAHCI.cpp
r47829 r48399 2585 2585 } 2586 2586 2587 #ifdef DEBUG2587 #ifdef LOG_ENABLED 2588 2588 2589 2589 /** … … 2700 2700 ahciLog(("%s: *** End command header info dump. ***\n", __FUNCTION__)); 2701 2701 } 2702 #endif /* DEBUG */ 2702 2703 #endif /* LOG_ENABLED */ 2703 2704 2704 2705 /** … … 4237 4238 break; 4238 4239 } 4239 elseif (!pAhciPort->pDrvMount->pfnIsMounted(pAhciPort->pDrvMount))4240 if (!pAhciPort->pDrvMount->pfnIsMounted(pAhciPort->pDrvMount)) 4240 4241 { 4241 4242 atapiCmdErrorSimple(pAhciPort, pAhciReq, SCSI_SENSE_NOT_READY, SCSI_ASC_MEDIUM_NOT_PRESENT); … … 4258 4259 * valid area this often generates too many release log 4259 4260 * entries otherwise. */ 4260 static uint64_t uLastLogTS = 0;4261 if (RTTimeMilliTS() >= uLastLogTS + 1000)4261 static uint64_t s_uLastLogTS = 0; 4262 if (RTTimeMilliTS() >= s_uLastLogTS + 1000) 4262 4263 { 4263 4264 LogRel(("AHCI ATAPI: LUN#%d: CD-ROM block number %Ld invalid (READ)\n", pAhciPort->iLUN, (uint64_t)iATAPILBA + cSectors)); 4264 uLastLogTS = RTTimeMilliTS();4265 s_uLastLogTS = RTTimeMilliTS(); 4265 4266 } 4266 4267 atapiCmdErrorSimple(pAhciPort, pAhciReq, SCSI_SENSE_ILLEGAL_REQUEST, SCSI_ASC_LOGICAL_BLOCK_OOR); … … 4299 4300 * valid area this often generates too many release log 4300 4301 * entries otherwise. */ 4301 static uint64_t uLastLogTS = 0;4302 if (RTTimeMilliTS() >= uLastLogTS + 1000)4302 static uint64_t s_uLastLogTS = 0; 4303 if (RTTimeMilliTS() >= s_uLastLogTS + 1000) 4303 4304 { 4304 4305 LogRel(("AHCI ATA: LUN#%d: CD-ROM block number %Ld invalid (READ CD)\n", pAhciPort->iLUN, (uint64_t)iATAPILBA + cSectors)); 4305 uLastLogTS = RTTimeMilliTS();4306 s_uLastLogTS = RTTimeMilliTS(); 4306 4307 } 4307 4308 atapiCmdErrorSimple(pAhciPort, pAhciReq, SCSI_SENSE_ILLEGAL_REQUEST, SCSI_ASC_LOGICAL_BLOCK_OOR); … … 4352 4353 * valid area this often generates too many release log 4353 4354 * entries otherwise. */ 4354 static uint64_t uLastLogTS = 0;4355 if (RTTimeMilliTS() >= uLastLogTS + 1000)4355 static uint64_t s_uLastLogTS = 0; 4356 if (RTTimeMilliTS() >= s_uLastLogTS + 1000) 4356 4357 { 4357 4358 LogRel(("AHCI ATAPI: LUN#%d: CD-ROM block number %Ld invalid (SEEK)\n", pAhciPort->iLUN, (uint64_t)iATAPILBA)); 4358 uLastLogTS = RTTimeMilliTS();4359 s_uLastLogTS = RTTimeMilliTS(); 4359 4360 } 4360 4361 atapiCmdErrorSimple(pAhciPort, pAhciReq, SCSI_SENSE_ILLEGAL_REQUEST, SCSI_ASC_LOGICAL_BLOCK_OOR); … … 4823 4824 4824 4825 pbPacket = pAhciReq->aATAPICmd; 4825 #ifdef DEBUG4826 4826 Log(("%s: LUN#%d CMD=%#04x \"%s\"\n", __FUNCTION__, pAhciPort->iLUN, pbPacket[0], SCSICmdText(pbPacket[0]))); 4827 #else /* !DEBUG */4828 Log(("%s: LUN#%d CMD=%#04x\n", __FUNCTION__, pAhciPort->iLUN, pbPacket[0]));4829 #endif /* !DEBUG */4830 4827 Log2(("%s: limit=%#x packet: %.*Rhxs\n", __FUNCTION__, pAhciReq->cmdFis[AHCI_CMDFIS_CYLL] | (pAhciReq->cmdFis[AHCI_CMDFIS_CYLH] << 8), ATAPI_PACKET_SIZE, pbPacket)); 4831 4828 … … 6170 6167 PDMDevHlpPhysRead(pAhciPort->CTX_SUFF(pDevIns), pAhciReq->GCPhysCmdHdrAddr, &pAhciReq->cmdHdr, sizeof(CmdHdr)); 6171 6168 6172 #ifdef DEBUG6169 #ifdef LOG_ENABLED 6173 6170 /* Print some infos about the command header. */ 6174 6171 ahciDumpCmdHdrInfo(pAhciPort, &pAhciReq->cmdHdr); … … 6208 6205 pAhciReq->cPrdtlEntries = AHCI_CMDHDR_PRDTL_ENTRIES(pAhciReq->cmdHdr.u32DescInf); 6209 6206 6210 #ifdef DEBUG6207 #ifdef LOG_ENABLED 6211 6208 /* Print some infos about the FIS. */ 6212 6209 ahciDumpFisInfo(pAhciPort, &pAhciReq->cmdFis[0]);
Note:
See TracChangeset
for help on using the changeset viewer.