VirtualBox

Changeset 69752 in vbox


Ignore:
Timestamp:
Nov 19, 2017 2:14:46 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119152
Message:

RTLogCreateEx[V] format annotations; fixed unsafe use in VBoxService.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/log.h

    r69749 r69752  
    20292029                          uint32_t fDestFlags, PFNRTLOGPHASE pfnPhase, uint32_t cHistory,
    20302030                          uint64_t cbHistoryFileMax, uint32_t cSecsHistoryTimeSlot, PRTERRINFO pErrInfo,
    2031                           const char *pszFilenameFmt, ...) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(14, 15);
     2031                          const char *pszFilenameFmt, ...) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(13, 14);
    20322032
    20332033/**
     
    20672067                           uint32_t fDestFlags, PFNRTLOGPHASE pfnPhase, uint32_t cHistory,
    20682068                           uint64_t cbHistoryFileMax, uint32_t cSecsHistoryTimeSlot, PRTERRINFO pErrInfo,
    2069                            const char *pszFilenameFmt, va_list args) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(14, 0);
     2069                           const char *pszFilenameFmt, va_list args) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(13, 0);
    20702070
    20712071/**
  • trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp

    r69749 r69752  
    319319                           RTLOGDEST_STDOUT | RTLOGDEST_USER,
    320320                           vgsvcLogHeaderFooter, g_cHistory, g_uHistoryFileSize, g_uHistoryFileTime,
    321                            NULL /*pErrInfo*/, pszLogFile);
     321                           NULL /*pErrInfo*/, "%s", pszLogFile);
    322322    if (RT_SUCCESS(rc))
    323323    {
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