VirtualBox

Changeset 66738 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
May 2, 2017 12:12:13 AM (8 years ago)
Author:
vboxsync
Message:

vfsbase: logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/vfs/vfsbase.cpp

    r66737 r66738  
    16931693    AssertPtrReturn(pThis, UINT32_MAX);
    16941694    AssertReturn(pThis->uMagic == RTVFS_MAGIC, UINT32_MAX);
    1695     return rtVfsObjRetain(&pThis->Base);
     1695    uint32_t cRefs = rtVfsObjRetain(&pThis->Base);
     1696    LogFlow(("RTVfsRetain(%p/%p) -> %d\n", pThis, pThis->Base.pvThis, cRefs));
     1697    return cRefs;
    16961698}
    16971699
     
    17041706    AssertPtrReturn(pThis, UINT32_MAX);
    17051707    AssertReturn(pThis->uMagic == RTVFS_MAGIC, UINT32_MAX);
    1706     return rtVfsObjRelease(&pThis->Base);
     1708#ifdef LOG_ENABLED
     1709    void *pvThis = pThis->Base.pvThis;
     1710#endif
     1711    uint32_t cRefs = rtVfsObjRelease(&pThis->Base);
     1712    Log(("RTVfsRelease(%p/%p) -> %d\n", pThis, pvThis, cRefs));
     1713    return cRefs;
    17071714}
    17081715
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