VirtualBox

Changeset 32356 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Sep 9, 2010 1:43:45 PM (14 years ago)
Author:
vboxsync
Message:

VMM: Avoid 700 unnecessary fflush(VBox.log) calls.

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/CFGM.cpp

    r30955 r32356  
    26732673{
    26742674    LogRel(("************************* CFGM dump *************************\n"));
     2675    bool fOldBuffered = RTLogRelSetBuffering(true /*fBuffered*/);
    26752676    cfgmR3Dump(pRoot, 0, DBGFR3InfoLogRelHlp());
     2677    RTLogRelSetBuffering(fOldBuffered);
    26762678    LogRel(("********************* End of CFGM dump **********************\n"));
    26772679}
  • trunk/src/VBox/VMM/CPUM.cpp

    r31395 r32356  
    946946     * Log the cpuid and we're good.
    947947     */
     948    bool fOldBuffered = RTLogRelSetBuffering(true /*fBuffered*/);
    948949    RTCPUSET OnlineSet;
    949950    LogRel(("Logical host processors: %u present, %u max, %u online, online mask: %016RX64\n",
     
    954955    LogRel(("\n"));
    955956    DBGFR3InfoLog(pVM, "cpuid", "verbose"); /* macro */
     957    RTLogRelSetBuffering(fOldBuffered);
    956958    LogRel(("******************** End of CPUID dump **********************\n"));
    957959
  • trunk/src/VBox/VMM/VM.cpp

    r32206 r32356  
    21792179            /** @todo SMP support? */
    21802180            /** @todo make the state dumping at VMR3PowerOff optional. */
     2181            bool fOldBuffered = RTLogRelSetBuffering(true /*fBuffered*/);
    21812182            RTLogRelPrintf("****************** Guest state at power off ******************\n");
    21822183            DBGFR3Info(pVM, "cpumguest", "verbose", DBGFR3InfoLogRelHlp());
     
    22272228            }
    22282229#endif
     2230            RTLogRelSetBuffering(fOldBuffered);
    22292231            RTLogRelPrintf("************** End of Guest state at power off ***************\n");
    22302232        }
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