VirtualBox

Changeset 22700 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Sep 2, 2009 10:05:23 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
51816
Message:

Main: comptr logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/com.cpp

    r21878 r22700  
    4848#include <iprt/env.h>
    4949#include <iprt/string.h>
     50#include <iprt/log.h>
    5051
    5152#include <VBox/err.h>
     
    201202#endif /* (VBOX_WITH_XPCOM) */
    202203
     204/**
     205 * Used by ComPtr and friends to log details about reference counting.
     206 * @param pcszFormat
     207 */
     208void LogRef(const char *pcszFormat, ...)
     209{
     210    va_list va;
     211    va_start(va, pcszFormat);
     212    va_end(va);
     213
     214    char *psz = NULL;
     215    RTStrAPrintfV(&psz, pcszFormat, va);
     216    LogDJ((psz));
     217    RTStrFree(psz);
     218}
     219
    203220} /* namespace com */
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