VirtualBox

Ignore:
Timestamp:
Oct 17, 2021 6:16:11 PM (3 years ago)
Author:
vboxsync
Message:

SUPDrv,IPRT,VBoxGuest: Don't export ellipsis functions from SUPDrv, as that makes switching back to the kernel stack unsafe. Exports has changes (added+removed), but not bumping major IOC version as that was done a few hours ago already and it's Sunday. bugref:10124

File:
1 edited

Legend:

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

    r90974 r91789  
    13551355
    13561356
    1357 RTDECL(int) RTLogCreateEx(PRTLOGGER *ppLogger, const char *pszEnvVarBase, uint64_t fFlags, const char *pszGroupSettings,
    1358                           unsigned cGroups, const char * const *papszGroups, uint32_t cMaxEntriesPerGroup,
    1359                           uint32_t cBufDescs, PRTLOGBUFFERDESC paBufDescs, uint32_t fDestFlags,
    1360                           PFNRTLOGPHASE pfnPhase, uint32_t cHistory, uint64_t cbHistoryFileMax, uint32_t cSecsHistoryTimeSlot,
    1361                           PRTERRINFO pErrInfo, const char *pszFilenameFmt, ...)
    1362 {
    1363     va_list va;
    1364     int     rc;
    1365 
    1366     va_start(va, pszFilenameFmt);
    1367     rc = RTLogCreateExV(ppLogger, pszEnvVarBase, fFlags, pszGroupSettings, cGroups, papszGroups, cMaxEntriesPerGroup,
    1368                         cBufDescs, paBufDescs, fDestFlags,
    1369                         pfnPhase, cHistory, cbHistoryFileMax, cSecsHistoryTimeSlot,
    1370                         pErrInfo, pszFilenameFmt, va);
    1371     va_end(va);
    1372     return rc;
    1373 }
    1374 RT_EXPORT_SYMBOL(RTLogCreateEx);
    1375 
    1376 
    13771357/**
    13781358 * Destroys a logger instance.
     
    20562036#ifdef IN_RING0
    20572037
    2058 RTR0DECL(int) RTLogSetR0ThreadNameF(PRTLOGGER pLogger, const char *pszNameFmt, ...)
     2038RTR0DECL(int) RTLogSetR0ThreadNameV(PRTLOGGER pLogger, const char *pszNameFmt, va_list va)
    20592039{
    20602040    PRTLOGGERINTERNAL pLoggerInt = (PRTLOGGERINTERNAL)pLogger;
     
    20622042    if (pLoggerInt)
    20632043    {
    2064         va_list va;
    2065         va_start(va, pszNameFmt);
    2066 
    20672044        rc = rtlogLock(pLoggerInt);
    20682045        if (RT_SUCCESS(rc))
     
    20722049            rc = cch > 0 ? VINF_SUCCESS : VERR_BUFFER_OVERFLOW;
    20732050        }
    2074 
    2075         va_end(va);
    20762051    }
    20772052    else
     
    20792054    return rc;
    20802055}
    2081 RT_EXPORT_SYMBOL(RTLogSetR0ThreadNameF);
     2056RT_EXPORT_SYMBOL(RTLogSetR0ThreadNameV);
    20822057
    20832058
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