VirtualBox

Changeset 62437 in vbox for trunk


Ignore:
Timestamp:
Jul 22, 2016 1:03:28 PM (8 years ago)
Author:
vboxsync
Message:

Devices: MSC level 4 warnings (release build)

Location:
trunk/src/VBox/Devices
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevIchHda.cpp

    r62117 r62437  
    21702170{
    21712171    const uint8_t  u8Strm  = HDA_SD_NUM_FROM_REG(pThis, LPIB, iReg);
    2172           uint32_t u32LPIB = HDA_STREAM_REG(pThis, LPIB, u8Strm);
     2172    uint32_t       u32LPIB = HDA_STREAM_REG(pThis, LPIB, u8Strm);
     2173#ifdef LOG_ENABLED
    21732174    const uint32_t u32CBL  = HDA_STREAM_REG(pThis, CBL,  u8Strm);
    2174 
    21752175    LogFlowFunc(("[SD%RU8]: LPIB=%RU32, CBL=%RU32\n", u8Strm, u32LPIB, u32CBL));
     2176#endif
    21762177
    21772178    *pu32Value = u32LPIB;
     
    22922293static int hdaRegWriteSDCTL(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value)
    22932294{
     2295#if defined(IN_RING3) || defined(LOG_ENABLED) || defined(VBOX_STRICT)
    22942296    bool fRun      = RT_BOOL(u32Value & HDA_REG_FIELD_FLAG_MASK(SDCTL, RUN));
    22952297    bool fInRun    = RT_BOOL(HDA_REG_IND(pThis, iReg) & HDA_REG_FIELD_FLAG_MASK(SDCTL, RUN));
     2298#endif
    22962299    bool fReset    = RT_BOOL(u32Value & HDA_REG_FIELD_FLAG_MASK(SDCTL, SRST));
    22972300    bool fInReset  = RT_BOOL(HDA_REG_IND(pThis, iReg) & HDA_REG_FIELD_FLAG_MASK(SDCTL, SRST));
     
    45524555    }
    45534556
    4554     uint32_t idxRegMem = g_aHdaRegMap[idxRegDsc].mem_idx;
    45554557#ifdef LOG_ENABLED
     4558    uint32_t const idxRegMem   = g_aHdaRegMap[idxRegDsc].mem_idx;
    45564559    uint32_t const u32CurValue = pThis->au32Regs[idxRegMem];
    45574560#endif
     
    46574660                              g_afMasks[cbReg] & ~g_afMasks[cb], u64Value & g_afMasks[cb], u64Value));
    46584661                }
    4659                 uint32_t u32LogOldVal = pThis->au32Regs[idxRegMem];
     4662#ifdef LOG_ENABLED
     4663                uint32_t uLogOldVal = pThis->au32Regs[idxRegMem];
     4664#endif
    46604665                rc = hdaWriteReg(pThis, idxRegDsc, u64Value, "*");
    4661                 Log3Func(("\t%#x -> %#x\n", u32LogOldVal, pThis->au32Regs[idxRegMem]));
     4666                Log3Func(("\t%#x -> %#x\n", uLogOldVal, pThis->au32Regs[idxRegMem]));
    46624667            }
    46634668            else
  • trunk/src/VBox/Devices/Bus/MsixCommon.cpp

    r56292 r62437  
    330330uint32_t MsixPciConfigRead(PPDMDEVINS pDevIns, PPCIDEVICE pDev, uint32_t u32Address, unsigned len)
    331331{
     332    NOREF(pDevIns);
     333#if defined(LOG_ENABLED) || defined(VBOX_STRICT)
    332334    int32_t iOff = u32Address - pDev->Int.s.u8MsixCapOffset;
    333     NOREF(pDevIns);
    334 
    335335    Assert(iOff >= 0 && (pciDevIsMsixCapable(pDev) && iOff < pDev->Int.s.u8MsixCapSize));
    336     uint32_t rv = 0;
    337 
     336#endif
     337    uint32_t rv;
    338338    switch (len)
    339339    {
     
    348348            break;
    349349        default:
    350             Assert(false);
     350            AssertFailed();
     351            rv = 0;
    351352    }
    352353
    353354    Log2(("MsixPciConfigRead: %d (%d) -> %x\n", iOff, len, rv));
    354 
    355355    return rv;
    356356}
     357
  • trunk/src/VBox/Devices/Network/DevE1000.cpp

    r62425 r62437  
    42674267static int e1kFallbackAddToFrame(PE1KSTATE pThis, E1KTXDESC* pDesc, bool fOnWorkerThread)
    42684268{
    4269     int rc = VINF_SUCCESS;
     4269#ifdef VBOX_STRICT
    42704270    PPDMSCATTERGATHER pTxSg = pThis->CTX_SUFF(pTxSg);
    42714271    Assert(e1kGetDescType(pDesc) == E1K_DTYP_DATA);
    42724272    Assert(pDesc->data.cmd.fTSE);
    42734273    Assert(!e1kXmitIsGsoBuf(pTxSg));
     4274#endif
    42744275
    42754276    uint16_t u16MaxPktLen = pThis->contextTSE.dw3.u8HDRLEN + pThis->contextTSE.dw3.u16MSS;
     
    42804281     * Carve out segments.
    42814282     */
     4283    int rc;
    42824284    do
    42834285    {
  • trunk/src/VBox/Devices/Network/DrvDedicatedNic.cpp

    r62428 r62437  
    252252PDMBOTHCBDECL(int) drvDedicatedNicUp_FreeBuf(PPDMINETWORKUP pInterface, PPDMSCATTERGATHER pSgBuf)
    253253{
     254#ifdef VBOX_STRICT
    254255    PDRVDEDICATEDNIC  pThis = RT_FROM_MEMBER(pInterface, DRVDEDICATEDNIC, CTX_SUFF(INetworkUp));
    255256    Assert(pSgBuf->fFlags == (PDMSCATTERGATHER_FLAGS_MAGIC | PDMSCATTERGATHER_FLAGS_OWNER_1));
    256257    Assert(pSgBuf->cbUsed <= pSgBuf->cbAvailable);
    257258    Assert(PDMCritSectIsOwner(&pThis->XmitLock));
     259#endif
    258260
    259261    if (pSgBuf)
     
    292294     * Tell the driver to send the packet.
    293295     */
    294 
     296    NOREF(pThis);
    295297    return VERR_INTERNAL_ERROR_4;
    296298
  • trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp

    r60819 r62437  
    14041404    PINTNETADDRCACHE pCache = &pIf->aAddrCache[enmAddrType];
    14051405
     1406#if defined(LOG_ENABLED) || defined(VBOX_STRICT)
    14061407    const uint8_t cbAddr = pCache->cbAddress;
    14071408    Assert(cbAddr == intnetR0AddrSize(enmAddrType));
     1409#endif
    14081410
    14091411    RTSpinlockAcquire(pNetwork->hAddrSpinlock);
  • trunk/src/VBox/Devices/PC/DevIOAPIC_New.cpp

    r62166 r62437  
    761761                                                            uTagSrc);
    762762    /* Can't reschedule to R3. */
    763     Assert(rc == VINF_SUCCESS || rc == VERR_APIC_INTR_DISCARDED);
     763    Assert(rc == VINF_SUCCESS || rc == VERR_APIC_INTR_DISCARDED); NOREF(rc);
    764764}
    765765
  • trunk/src/VBox/Devices/PC/DevIoApic.cpp

    r61847 r62437  
    180180                /* We must be sure that attempts to reschedule in R3
    181181                   never get here */
    182                 Assert(rc == VINF_SUCCESS || rc == VERR_APIC_INTR_DISCARDED);
     182                Assert(rc == VINF_SUCCESS || rc == VERR_APIC_INTR_DISCARDED); NOREF(rc);
    183183            }
    184184        }
     
    524524    /* We must be sure that attempts to reschedule in R3
    525525       never get here */
    526     Assert(rc == VINF_SUCCESS || rc == VERR_APIC_INTR_DISCARDED);
     526    Assert(rc == VINF_SUCCESS || rc == VERR_APIC_INTR_DISCARDED); NOREF(rc);
    527527}
    528528
  • trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp

    r60565 r62437  
    17681768                                           RTGCPHYS GCPhysAddr, void const *pv, unsigned cb)
    17691769{
     1770#ifdef LOG_ENABLED
    17701771    PLSILOGICSCSI  pThis = PDMINS_2_DATA(pDevIns, PLSILOGICSCSI);
    1771 
    17721772    LogFlowFunc(("pThis=%#p GCPhysAddr=%RGp pv=%#p{%.*Rhxs} cb=%u\n", pThis, GCPhysAddr, pv, cb, pv, cb));
     1773#endif
    17731774
    17741775    return VINF_SUCCESS;
     
    17781779                                          RTGCPHYS GCPhysAddr, void *pv, unsigned cb)
    17791780{
     1781#ifdef LOG_ENABLED
    17801782    PLSILOGICSCSI  pThis = PDMINS_2_DATA(pDevIns, PLSILOGICSCSI);
    1781 
    17821783    LogFlowFunc(("pThis=%#p GCPhysAddr=%RGp pv=%#p{%.*Rhxs} cb=%u\n", pThis, GCPhysAddr, pv, cb, pv, cb));
     1784#endif
    17831785
    17841786    return VINF_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.

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