VirtualBox

Changeset 107466 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Jan 7, 2025 12:39:48 PM (12 days ago)
Author:
vboxsync
Message:

VMM/VMEmt.cpp: Compile logging only code only if LOG_ENABLED is defined, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/VMEmt.cpp

    r107227 r107466  
    101101    rc = VINF_SUCCESS;
    102102    Log(("vmR3EmulationThread: Emulation thread starting the days work... Thread=%#x pUVM=%p\n", hThreadSelf, pUVM));
     103#ifdef LOG_ENABLED
    103104    VMSTATE enmBefore = VMSTATE_CREATED; /* (only used for logging atm.) */
     105#endif
    104106    ASMAtomicIncU32(&pUVM->vm.s.cActiveEmts);
    105107    for (;;)
     
    165167             * servicing requests. (Look after the ifs.)
    166168             */
     169#ifdef LOG_ENABLED
    167170            enmBefore = pVM->enmVMState;
     171#endif
    168172            if (pUVM->vm.s.fTerminateEMT)
    169173            {
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