VirtualBox

Changeset 90692 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 16, 2021 9:20:36 AM (3 years ago)
Author:
vboxsync
Message:

IPRT: Corrected three RTLogGetXxxx functions to RTLogQueryXxxx (getters shall not return an IPRT status code). bugref:10086

Location:
trunk/src/VBox
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c

    r88569 r90692  
    12111211    *pszBuf = '\0';
    12121212    if (pLogger)
    1213         RTLogGetGroupSettings(pLogger, pszBuf, _4K);
     1213        RTLogQueryGroupSettings(pLogger, pszBuf, _4K);
    12141214    return strlen(pszBuf);
    12151215}
     
    12361236    *pszBuf = '\0';
    12371237    if (pLogger)
    1238         RTLogGetFlags(pLogger, pszBuf, _4K);
     1238        RTLogQueryFlags(pLogger, pszBuf, _4K);
    12391239    return strlen(pszBuf);
    12401240}
     
    12611261    *pszBuf = '\0';
    12621262    if (pLogger)
    1263         RTLogGetDestinations(pLogger, pszBuf, _4K);
     1263        RTLogQueryDestinations(pLogger, pszBuf, _4K);
    12641264    return strlen(pszBuf);
    12651265}
  • trunk/src/VBox/Debugger/DBGCCommands.cpp

    r86361 r90692  
    12001200    {
    12011201        char szBuf[_64K];
    1202         rc = RTLogGetGroupSettings(NULL, szBuf, sizeof(szBuf));
     1202        rc = RTLogQueryGroupSettings(NULL, szBuf, sizeof(szBuf));
    12031203        if (RT_FAILURE(rc))
    1204             return DBGCCmdHlpVBoxError(pCmdHlp, rc, "RTLogGetDestinations(NULL,,%#zx)\n", sizeof(szBuf));
     1204            return DBGCCmdHlpVBoxError(pCmdHlp, rc, "RTLogQueryGroupSettings(NULL,,%#zx)\n", sizeof(szBuf));
    12051205        DBGCCmdHlpPrintf(pCmdHlp, "VBOX_LOG=%s\n", szBuf);
    12061206    }
     
    12251225    {
    12261226        char szBuf[_16K];
    1227         rc = RTLogGetDestinations(NULL, szBuf, sizeof(szBuf));
     1227        rc = RTLogQueryDestinations(NULL, szBuf, sizeof(szBuf));
    12281228        if (RT_FAILURE(rc))
    1229             return DBGCCmdHlpVBoxError(pCmdHlp, rc, "RTLogGetDestinations(NULL,,%#zx)\n", sizeof(szBuf));
     1229            return DBGCCmdHlpVBoxError(pCmdHlp, rc, "RTLogQueryDestinations(NULL,,%#zx)\n", sizeof(szBuf));
    12301230        DBGCCmdHlpPrintf(pCmdHlp, "VBOX_LOG_DEST=%s\n", szBuf);
    12311231    }
     
    12501250    {
    12511251        char szBuf[_16K];
    1252         rc = RTLogGetFlags(NULL, szBuf, sizeof(szBuf));
     1252        rc = RTLogQueryFlags(NULL, szBuf, sizeof(szBuf));
    12531253        if (RT_FAILURE(rc))
    1254             return DBGCCmdHlpVBoxError(pCmdHlp, rc, "RTLogGetFlags(NULL,,%#zx)\n", sizeof(szBuf));
     1254            return DBGCCmdHlpVBoxError(pCmdHlp, rc, "RTLogQueryFlags(NULL,,%#zx)\n", sizeof(szBuf));
    12551255        DBGCCmdHlpPrintf(pCmdHlp, "VBOX_LOG_FLAGS=%s\n", szBuf);
    12561256    }
  • trunk/src/VBox/Main/src-client/MachineDebuggerImpl.cpp

    r90549 r90692  
    477477HRESULT MachineDebugger::getLogDbgFlags(com::Utf8Str &aLogDbgFlags)
    478478{
    479     return i_logStringProps(RTLogGetDefaultInstance(), RTLogGetFlags, "RTGetFlags", &aLogDbgFlags);
     479    return i_logStringProps(RTLogGetDefaultInstance(), RTLogQueryFlags, "RTLogQueryFlags", &aLogDbgFlags);
    480480}
    481481
    482482HRESULT MachineDebugger::getLogDbgGroups(com::Utf8Str &aLogDbgGroups)
    483483{
    484     return i_logStringProps(RTLogGetDefaultInstance(), RTLogGetGroupSettings, "RTLogGetGroupSettings", &aLogDbgGroups);
     484    return i_logStringProps(RTLogGetDefaultInstance(), RTLogQueryGroupSettings, "RTLogQueryGroupSettings", &aLogDbgGroups);
    485485}
    486486
    487487HRESULT MachineDebugger::getLogDbgDestinations(com::Utf8Str &aLogDbgDestinations)
    488488{
    489     return i_logStringProps(RTLogGetDefaultInstance(), RTLogGetDestinations, "RTLogGetDestinations", &aLogDbgDestinations);
     489    return i_logStringProps(RTLogGetDefaultInstance(), RTLogQueryDestinations, "RTLogQueryDestinations", &aLogDbgDestinations);
    490490}
    491491
    492492HRESULT MachineDebugger::getLogRelFlags(com::Utf8Str &aLogRelFlags)
    493493{
    494     return i_logStringProps(RTLogRelGetDefaultInstance(), RTLogGetFlags, "RTGetFlags", &aLogRelFlags);
     494    return i_logStringProps(RTLogRelGetDefaultInstance(), RTLogQueryFlags, "RTLogQueryFlags", &aLogRelFlags);
    495495}
    496496
    497497HRESULT MachineDebugger::getLogRelGroups(com::Utf8Str &aLogRelGroups)
    498498{
    499     return i_logStringProps(RTLogRelGetDefaultInstance(), RTLogGetGroupSettings, "RTLogGetGroupSettings", &aLogRelGroups);
     499    return i_logStringProps(RTLogRelGetDefaultInstance(), RTLogQueryGroupSettings, "RTLogQueryGroupSettings", &aLogRelGroups);
    500500}
    501501
    502502HRESULT MachineDebugger::getLogRelDestinations(com::Utf8Str &aLogRelDestinations)
    503503{
    504     return i_logStringProps(RTLogRelGetDefaultInstance(), RTLogGetDestinations, "RTLogGetDestinations", &aLogRelDestinations);
     504    return i_logStringProps(RTLogRelGetDefaultInstance(), RTLogQueryDestinations, "RTLogQueryDestinations", &aLogRelDestinations);
    505505}
    506506
  • trunk/src/VBox/Main/src-global/win/VBoxSDS.cpp

    r83818 r90692  
    642642                {
    643643                    char szDest[1024];
    644                     int rc = ::RTLogGetDestinations(pReleaseLogger, szDest, sizeof(szDest));
     644                    int rc = ::RTLogQueryDestinations(pReleaseLogger, szDest, sizeof(szDest));
    645645                    if (RT_SUCCESS(rc))
    646646                    {
  • trunk/src/VBox/Main/src-server/UnattendedImpl.cpp

    r86274 r90692  
    22872287    if (aHostname.length() > (aHostname.endsWith(".") ? 254U : 253U))
    22882288        return setErrorBoth(E_INVALIDARG, VERR_INVALID_NAME,
    2289                             tr("Hostname '%s' is %zu bytes long, max is 253 (excluing trailing dot)"),
     2289                            tr("Hostname '%s' is %zu bytes long, max is 253 (excluding trailing dot)"),
    22902290                            aHostname.c_str(), aHostname.length());
    22912291    size_t      cLabels  = 0;
  • trunk/src/VBox/Main/src-server/win/svcmain.cpp

    r89202 r90692  
    158158            {
    159159                char szDest[1024];
    160                 int rc = RTLogGetDestinations(pReleaseLogger, szDest, sizeof(szDest));
     160                int rc = RTLogQueryDestinations(pReleaseLogger, szDest, sizeof(szDest));
    161161                if (RT_SUCCESS(rc))
    162162                {
  • trunk/src/VBox/Runtime/VBox/VBoxRTImp.def

    r88167 r90692  
    12771277    RTLogGetDefaultInstance
    12781278    RTLogGetDefaultInstanceEx
    1279     RTLogGetDestinations
    1280     RTLogGetFlags
    1281     RTLogGetGroupSettings
    12821279    RTLogGroupSettings
    12831280    RTLogLogger
     
    12871284    RTLogPrintf
    12881285    RTLogPrintfV
     1286    RTLogQueryDestinations
     1287    RTLogQueryFlags
     1288    RTLogQueryGroupSettings
    12891289    RTLogRelGetDefaultInstance
    12901290    RTLogRelGetDefaultInstanceEx
  • trunk/src/VBox/Runtime/common/log/log.cpp

    r83657 r90692  
    19181918 *                              than zero.
    19191919 */
    1920 RTDECL(int) RTLogGetGroupSettings(PRTLOGGER pLogger, char *pszBuf, size_t cchBuf)
     1920RTDECL(int) RTLogQueryGroupSettings(PRTLOGGER pLogger, char *pszBuf, size_t cchBuf)
    19211921{
    19221922    bool        fNotFirst = false;
     
    19771977    return rc;
    19781978}
    1979 RT_EXPORT_SYMBOL(RTLogGetGroupSettings);
     1979RT_EXPORT_SYMBOL(RTLogQueryGroupSettings);
    19801980
    19811981#endif /* !IN_RC */
     
    21452145 *                              than zero.
    21462146 */
    2147 RTDECL(int) RTLogGetFlags(PRTLOGGER pLogger, char *pszBuf, size_t cchBuf)
     2147RTDECL(int) RTLogQueryFlags(PRTLOGGER pLogger, char *pszBuf, size_t cchBuf)
    21482148{
    21492149    bool        fNotFirst = false;
     
    21952195    return rc;
    21962196}
    2197 RT_EXPORT_SYMBOL(RTLogGetFlags);
     2197RT_EXPORT_SYMBOL(RTLogQueryFlags);
    21982198
    21992199
     
    25002500 *                              than 0.
    25012501 */
    2502 RTDECL(int) RTLogGetDestinations(PRTLOGGER pLogger, char *pszBuf, size_t cchBuf)
     2502RTDECL(int) RTLogQueryDestinations(PRTLOGGER pLogger, char *pszBuf, size_t cchBuf)
    25032503{
    25042504    bool        fNotFirst = false;
     
    26012601    return VINF_SUCCESS;
    26022602}
    2603 RT_EXPORT_SYMBOL(RTLogGetDestinations);
     2603RT_EXPORT_SYMBOL(RTLogQueryDestinations);
    26042604
    26052605#endif /* !IN_RC */
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