VirtualBox

Changeset 49942 in vbox for trunk/src


Ignore:
Timestamp:
Dec 16, 2013 6:57:53 PM (11 years ago)
Author:
vboxsync
Message:

Runtime/common/log/log.cpp: fix getting the log destination (reversed condition)

File:
1 edited

Legend:

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

    r49939 r49942  
    20862086        if (pLogger->pInt->cHistory)
    20872087        {
    2088             RTStrPrintf(szNum, sizeof(szNum), fNotFirst ? "history=%u" : " history=%u", pLogger->pInt->cHistory);
     2088            RTStrPrintf(szNum, sizeof(szNum), fNotFirst ? " history=%u" : "history=%u", pLogger->pInt->cHistory);
    20892089            rc = RTStrCopyP(&pszBuf, &cchBuf, szNum);
    20902090            if (RT_FAILURE(rc))
    20912091                return rc;
     2092            fNotFirst = true;
    20922093        }
    20932094        if (pLogger->pInt->cbHistoryFileMax != UINT64_MAX)
    20942095        {
    2095             RTStrPrintf(szNum, sizeof(szNum), fNotFirst ? "histsize=%llu" : " histsize=%llu", pLogger->pInt->cbHistoryFileMax);
     2096            RTStrPrintf(szNum, sizeof(szNum), fNotFirst ? " histsize=%llu" : "histsize=%llu", pLogger->pInt->cbHistoryFileMax);
    20962097            rc = RTStrCopyP(&pszBuf, &cchBuf, szNum);
    20972098            if (RT_FAILURE(rc))
    20982099                return rc;
     2100            fNotFirst = true;
    20992101        }
    21002102        if (pLogger->pInt->cSecsHistoryTimeSlot != UINT32_MAX)
    21012103        {
    2102             RTStrPrintf(szNum, sizeof(szNum), fNotFirst ? "histtime=%llu" : " histtime=%llu", pLogger->pInt->cSecsHistoryTimeSlot);
     2104            RTStrPrintf(szNum, sizeof(szNum), fNotFirst ? " histtime=%llu" : "histtime=%llu", pLogger->pInt->cSecsHistoryTimeSlot);
    21032105            rc = RTStrCopyP(&pszBuf, &cchBuf, szNum);
    21042106            if (RT_FAILURE(rc))
    21052107                return rc;
     2108            fNotFirst = true;
    21062109        }
    21072110    }
     
    27382741            do
    27392742            {
    2740                 rc = RTFileRename(szOldName, szNewName, RTFILEMOVE_FLAGS_REPLACE);
     2743                rc = RTFileRename(szOldName, szNewName, RTFILEMOVE_FLAGS_REPLACE);
    27412744                if (rc == VERR_SHARING_VIOLATION)
    27422745                {
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