VirtualBox

Ignore:
Timestamp:
Nov 19, 2017 12:49:36 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119149
Message:

Changed RTLogCreateEx[V] to take a RTERRINFO pointer rather than plain char * and size_t. Turned out a several callers didn't actually make use of the error message even.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/xpcom/server.cpp

    r65420 r69749  
    744744        return RTMsgErrorExit(RTEXITCODE_FAILURE, "failed to create logging file name, rc=%Rrc", vrc);
    745745
    746     char szError[RTPATH_MAX + 128];
     746    RTERRINFOSTATIC ErrInfo;
    747747    vrc = com::VBoxLogRelCreate("XPCOM Server", szLogFile,
    748748                                RTLOGFLAGS_PREFIX_THREAD | RTLOGFLAGS_PREFIX_TIME_PROG,
     
    750750                                RTLOGDEST_FILE, UINT32_MAX /* cMaxEntriesPerGroup */,
    751751                                cHistory, uHistoryFileTime, uHistoryFileSize,
    752                                 szError, sizeof(szError));
     752                                RTErrInfoInitStatic(&ErrInfo));
    753753    if (RT_FAILURE(vrc))
    754         return RTMsgErrorExit(RTEXITCODE_FAILURE, "failed to open release log (%s, %Rrc)", szError, vrc);
     754        return RTMsgErrorExit(RTEXITCODE_FAILURE, "failed to open release log (%s, %Rrc)", ErrInfo.Core.pszMsg, vrc);
    755755
    756756    /* Set up a build identifier so that it can be seen from core dumps what
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