VirtualBox

Changeset 47592 in vbox for trunk


Ignore:
Timestamp:
Aug 7, 2013 1:58:24 PM (11 years ago)
Author:
vboxsync
Message:

Small changes to tidy up 6787 Contrl VboxSV release logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/SystemPropertiesImpl.cpp

    r47591 r47592  
    657657
    658658    Utf8Str useLoggingLevel(m->strLoggingLevel);
    659     useLoggingLevel = (useLoggingLevel.isEmpty() ? VBOXSVC_LOG_DEFAULT : useLoggingLevel);
     659    if (useLoggingLevel.isEmpty())
     660        useLoggingLevel = VBOXSVC_LOG_DEFAULT;
    660661
    661662    useLoggingLevel.cloneTo(aLoggingLevel);
     
    679680    }
    680681    else
    681     {
    682         LogRel(("Cannot set passed logging level=%ls, or the default one - Error=%Rrc \n", aLoggingLevel, rc));
    683     }
     682        LogRel(("Cannot set passed logging level=%ls, or the default one - Error=%Rhrc \n", aLoggingLevel, rc));
    684683
    685684    return rc;
     
    12881287    rc = RTLogGroupSettings(RTLogRelDefaultInstance(), useLoggingLevel.c_str());
    12891288    //  If failed and not the default logging level - try to use the default logging level.
    1290     if (!RT_SUCCESS(rc))
     1289    if (RT_FAILURE(rc))
    12911290    {
    12921291        // If failed write message to the release log.
     
    12971296            rc = RTLogGroupSettings(RTLogRelDefaultInstance(), VBOXSVC_LOG_DEFAULT);
    12981297            // If failed report this to the release log.
    1299             if (!RT_SUCCESS(rc))
     1298            if (RT_FAILURE(rc))
    13001299                LogRel(("Cannot set default logging level Error=%Rrc \n", rc));
    13011300        }
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