VirtualBox

Changeset 9242 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 30, 2008 8:24:25 AM (17 years ago)
Author:
vboxsync
Message:

only allow to change logging settings if LOG_ENABLED

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineDebuggerImpl.cpp

    r8822 r9242  
    457457    AutoWriteLock alock(this);
    458458    CHECK_READY();
     459#ifdef LOG_ENABLED
    459460    PRTLOGGER pLogInstance = RTLogDefaultInstance();
    460461    *aEnabled = pLogInstance && !(pLogInstance->fFlags & RTLOGFLAGS_DISABLED);
     462#else
     463    *aEnabled = false;
     464#endif
    461465    return S_OK;
    462466}
     
    493497    CheckComRCReturnRC (pVM.rc());
    494498
     499#ifdef LOG_ENABLED
    495500    int vrc = DBGFR3LogModifyFlags(pVM, aEnabled ? "enabled" : "disabled");
    496501    if (VBOX_FAILURE(vrc))
     
    498503        /** @todo handle error code. */
    499504    }
     505#endif
    500506    return S_OK;
    501507}
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