VirtualBox

Changeset 21264 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jul 6, 2009 5:20:57 PM (16 years ago)
Author:
vboxsync
Message:

PDMAllCritSect.cpp: Extended some assertions for #4088.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PDMAllCritSect.cpp

    r20998 r21264  
    175175     * If the critical section has already been destroyed, then inform the caller.
    176176     */
    177     AssertReturn(pCritSect->s.Core.u32Magic == RTCRITSECT_MAGIC, VERR_SEM_DESTROYED);
     177    AssertMsgReturn(pCritSect->s.Core.u32Magic == RTCRITSECT_MAGIC,
     178                    ("%p %RX32\n", pCritSect, pCritSect->s.Core.u32Magic),
     179                    VERR_SEM_DESTROYED);
    178180
    179181    /*
     
    242244     * If the critical section has already been destroyed, then inform the caller.
    243245     */
    244     AssertReturn(pCritSect->s.Core.u32Magic == RTCRITSECT_MAGIC, VERR_SEM_DESTROYED);
     246    AssertMsgReturn(pCritSect->s.Core.u32Magic == RTCRITSECT_MAGIC,
     247                    ("%p %RX32\n", pCritSect, pCritSect->s.Core.u32Magic),
     248                    VERR_SEM_DESTROYED);
    245249
    246250    /*
     
    309313VMMDECL(void) PDMCritSectLeave(PPDMCRITSECT pCritSect)
    310314{
     315    AssertMsg(pCritSect->s.Core.u32Magic == RTCRITSECT_MAGIC, ("%p %RX32\n", pCritSect, pCritSect->s.Core.u32Magic));
    311316    Assert(pCritSect->s.Core.u32Magic == RTCRITSECT_MAGIC);
    312317    Assert(pCritSect->s.Core.NativeThreadOwner == pdmCritSectGetNativeSelf(pCritSect));
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