VirtualBox

Changeset 47589 in vbox


Ignore:
Timestamp:
Aug 7, 2013 1:27:03 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

    r47587 r47589  
    680680    else
    681681    {
    682         LogRel(("Cannot set passed logging level=%s, or the default one - Error=%Rrc \n", aLoggingLevel, rc));
     682        LogRel(("Cannot set passed logging level=%ls, or the default one - Error=%Rrc \n", aLoggingLevel, rc));
    683683    }
    684684
     
    12841284HRESULT SystemProperties::setLoggingLevel(const Utf8Str &aLoggingLevel)
    12851285{
    1286     HRESULT rc = S_OK;
     1286    int rc = S_OK;
    12871287    Utf8Str useLoggingLevel(aLoggingLevel);
    12881288    rc = RTLogGroupSettings(RTLogRelDefaultInstance(), useLoggingLevel.c_str());
    12891289    //  If failed and not the default logging level - try to use the default logging level.
    1290     if (!SUCCEEDED(rc)){
     1290    if (!RT_SUCCESS(rc))
     1291    {
    12911292        // If failed write message to the release log.
    12921293        LogRel(("Cannot set passed logging level=%s Error=%Rrc \n", useLoggingLevel.c_str(), rc));
    12931294        //  If attempted logging level not the default one then try the default one.
    1294         if (!useLoggingLevel.equals(VBOXSVC_LOG_DEFAULT)){
     1295        if (!useLoggingLevel.equals(VBOXSVC_LOG_DEFAULT))
     1296        {
    12951297            rc = RTLogGroupSettings(RTLogRelDefaultInstance(), VBOXSVC_LOG_DEFAULT);
    12961298            // If failed report this to the release log.
    1297             if (!SUCCEEDED(rc))
     1299            if (!RT_SUCCESS(rc))
    12981300                LogRel(("Cannot set default logging level Error=%Rrc \n", rc));
    12991301        }
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