VirtualBox

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


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

Main: comptr logging

File:
1 edited

Legend:

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

    r22700 r22702  
    4848#include <iprt/env.h>
    4949#include <iprt/string.h>
    50 #include <iprt/log.h>
    5150
    5251#include <VBox/err.h>
    5352
     53#include <Logging.h>
    5454
    5555#ifdef RT_OS_DARWIN
     
    208208void LogRef(const char *pcszFormat, ...)
    209209{
    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);
     210    char *pszNewMsg;
     211    va_list args;
     212    va_start(args, pcszFormat);
     213    RTStrAPrintfV(&pszNewMsg, pcszFormat, args);
     214    LogDJ((pszNewMsg));
     215    RTStrFree(pszNewMsg);
     216    va_end(args);
    218217}
    219218
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