Changeset 81636 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Nov 4, 2019 2:30:47 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 134393
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevVirtioSCSI.cpp
r81635 r81636 507 507 typedef VIRTIOSCSIREQ *PVIRTIOSCSIREQ; 508 508 509 510 #ifdef LOG_ENABLED 511 509 512 DECLINLINE(const char *) virtioGetTxDirText(uint32_t enmTxDir) 510 513 { … … 567 570 } 568 571 569 #ifdef LOG_ENABLED570 572 static uint8_t virtioScsiEstimateCdbLen(uint8_t uCmd, uint8_t cbMax) 571 573 { … … 582 584 return cbMax; 583 585 } 586 584 587 #endif /* LOG_ENABLED */ 585 586 588 587 589 static int virtioScsiR3SendEvent(PVIRTIOSCSI pThis, uint16_t uTarget, uint32_t uEventType, uint32_t uReason) … … 804 806 } 805 807 806 const char *getReqRespText = virtioGetReqRespText(respHdr.uResponse); 807 Log2Func(("status: (%d) %s, response: (%d) %s\n", 808 pReq->uStatus, SCSIStatusText(pReq->uStatus), 809 respHdr.uResponse, getReqRespText)); 810 RT_NOREF(getReqRespText); 808 Log2Func(("status: (%d) %s, response: (%d) %s\n", pReq->uStatus, SCSIStatusText(pReq->uStatus), 809 respHdr.uResponse, virtioGetReqRespText(respHdr.uResponse))); 811 810 812 811 if (RT_FAILURE(rcReq)) … … 818 817 pReq->cbDataIn, pReq->cbDataOut, pReq->pDescChain->cbPhysReturn, pReq->pDescChain->cbPhysSend)); 819 818 LogFunc(("xfer = %lu, residual = %u\n", cbXfer, cbResidual)); 820 const char *pszTxDirText = virtioGetTxDirText(pReq->enmTxDir);821 819 LogFunc(("xfer direction: %s, sense written = %d, sense size = %d\n", 822 pszTxDirText, respHdr.cbSenseLen, pThis->virtioScsiConfig.uSenseSize)); 823 RT_NOREF(pszTxDirText); 820 virtioGetTxDirText(pReq->enmTxDir), respHdr.cbSenseLen, pThis->virtioScsiConfig.uSenseSize)); 824 821 } 825 822
Note:
See TracChangeset
for help on using the changeset viewer.