VirtualBox

Ignore:
Timestamp:
Nov 19, 2017 1:38:19 PM (7 years ago)
Author:
vboxsync
Message:

Missed a RTLogCreateEx related call.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxAutostart/VBoxAutostart-posix.cpp

    r69500 r69751  
    498498
    499499    /* create release logger, to stdout */
    500     char szError[RTPATH_MAX + 128];
     500    RTERRINFOSTATIC ErrInfo;
    501501    rc = com::VBoxLogRelCreate("Autostart", g_fDaemonize ? NULL : pszLogFile,
    502502                               RTLOGFLAGS_PREFIX_THREAD | RTLOGFLAGS_PREFIX_TIME_PROG,
     
    504504                               RTLOGDEST_STDOUT, UINT32_MAX /* cMaxEntriesPerGroup */,
    505505                               g_cHistory, g_uHistoryFileTime, g_uHistoryFileSize,
    506                                szError, sizeof(szError));
     506                               RTErrInfoInitStatic(&ErrInfo));
    507507    if (RT_FAILURE(rc))
    508         return RTMsgErrorExit(RTEXITCODE_FAILURE, "failed to open release log (%s, %Rrc)", szError, rc);
     508        return RTMsgErrorExit(RTEXITCODE_FAILURE, "failed to open release log (%s, %Rrc)", ErrInfo.Core.pszMsg, rc);
    509509
    510510#ifdef VBOXAUTOSTART_DAEMONIZE
     
    534534                                   RTLOGDEST_FILE, UINT32_MAX /* cMaxEntriesPerGroup */,
    535535                                   g_cHistory, g_uHistoryFileTime, g_uHistoryFileSize,
    536                                    szError, sizeof(szError));
     536                                   RTErrInfoInitStatic(&ErrInfo));
    537537        if (RT_FAILURE(rc))
    538             return RTMsgErrorExit(RTEXITCODE_FAILURE, "failed to open release log (%s, %Rrc)", szError, rc);
     538            return RTMsgErrorExit(RTEXITCODE_FAILURE, "failed to open release log (%s, %Rrc)", ErrInfo.Core.pszMsg, rc);
    539539    }
    540540#endif
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