VirtualBox

Changeset 81636 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Nov 4, 2019 2:30:47 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134393
Message:

DevVirtioScsi: Put unused stringifiers in LOG_ENABLED ifdefs to make clang happy. bugref:9218 bugref:9440

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevVirtioSCSI.cpp

    r81635 r81636  
    507507typedef VIRTIOSCSIREQ *PVIRTIOSCSIREQ;
    508508
     509
     510#ifdef LOG_ENABLED
     511
    509512DECLINLINE(const char *) virtioGetTxDirText(uint32_t enmTxDir)
    510513{
     
    567570}
    568571
    569 #ifdef LOG_ENABLED
    570572static uint8_t virtioScsiEstimateCdbLen(uint8_t uCmd, uint8_t cbMax)
    571573{
     
    582584    return cbMax;
    583585}
     586
    584587#endif /* LOG_ENABLED */
    585 
    586588
    587589static int virtioScsiR3SendEvent(PVIRTIOSCSI pThis, uint16_t uTarget, uint32_t uEventType, uint32_t uReason)
     
    804806    }
    805807
    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)));
    811810
    812811    if (RT_FAILURE(rcReq))
     
    818817                  pReq->cbDataIn, pReq->cbDataOut, pReq->pDescChain->cbPhysReturn, pReq->pDescChain->cbPhysSend));
    819818        LogFunc(("xfer = %lu, residual = %u\n", cbXfer, cbResidual));
    820         const char *pszTxDirText = virtioGetTxDirText(pReq->enmTxDir);
    821819        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));
    824821    }
    825822
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette