VirtualBox

Changeset 1578 in vbox for trunk/src


Ignore:
Timestamp:
Mar 20, 2007 8:02:06 PM (18 years ago)
Author:
vboxsync
Message:

style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGMMap.cpp

    r1576 r1578  
    101101            AssertMsgFailed(("Address is already in use by %s. req %#x-%#x take %#x-%#x\n",
    102102                             pCur->pszDesc, GCPtr, GCPtrLast, pCur->GCPtr, pCur->GCPtrLast));
    103             LogRel(("VERR_PGM_MAPPING_CONFLICT: Address is already in use by %s. req %#x-%#x take %#x-%#x\n",pCur->pszDesc, GCPtr, GCPtrLast, pCur->GCPtr, pCur->GCPtrLast));
     103            LogRel(("VERR_PGM_MAPPING_CONFLICT: Address is already in use by %s. req %#x-%#x take %#x-%#x\n",
     104                    pCur->pszDesc, GCPtr, GCPtrLast, pCur->GCPtr, pCur->GCPtrLast));
    104105            return VERR_PGM_MAPPING_CONFLICT;
    105106        }
     
    464465PGMR3DECL(int) PGMR3MapIntermediate(PVM pVM, RTUINTPTR Addr, RTHCPHYS HCPhys, unsigned cbPages)
    465466{
    466     size_t  cbHyper;
    467     RTGCPTR pvHyperGC;
    468 
    469467    LogFlow(("PGMR3MapIntermediate: Addr=%RTptr HCPhys=%VHp cbPages=%#x\n", Addr, HCPhys, cbPages));
    470468
     
    503501
    504502    /* The intermediate mapping must not conflict with our default hypervisor address. */
    505     pvHyperGC = MMHyperGetArea(pVM, &cbHyper);
    506     if (   uAddress < pvHyperGC
    507            ? uAddress + cbPages > pvHyperGC
    508            : pvHyperGC + cbHyper > uAddress
     503    size_t  cbHyper;
     504    RTGCPTR pvHyperGC = MMHyperGetArea(pVM, &cbHyper);
     505    if (uAddress < pvHyperGC
     506        ? uAddress + cbPages > pvHyperGC
     507        : pvHyperGC + cbHyper > uAddress
    509508       )
    510509    {
    511         AssertMsgFailed(("Addr=%RTptr HyperGC=%VGv cbPages=%d\n", Addr, pvHyperGC, cbPages));
    512         LogRel(("Addr=%RTptr HyperGC=%VGv cbPages=%d\n", Addr, pvHyperGC, cbPages));
     510        AssertMsgFailed(("Addr=%RTptr HyperGC=%VGv cbPages=%zu\n", Addr, pvHyperGC, cbPages));
     511        LogRel(("Addr=%RTptr HyperGC=%VGv cbPages=%zu\n", Addr, pvHyperGC, cbPages));
    513512        return VERR_PGM_MAPPINGS_FIX_CONFLICT; /** @todo new error code */
    514513    }
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