VirtualBox

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


Ignore:
Timestamp:
Aug 20, 2007 8:45:31 PM (17 years ago)
Author:
vboxsync
Message:

Test RTLogPrintf and unset the per-thread loginstance on init failure.

File:
1 edited

Legend:

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

    r4248 r4250  
    6060 * safe when more than one VM is running or when using internal
    6161 * networking. */
    62 #if defined(DEBUG_sandervl)
     62#if defined(DEBUG_sandervl) /*|| defined(DEBUG_bird)*/
    6363#define DEBUG_NO_RING0_ASSERTIONS
    6464#endif
     
    174174        RTLogLoggerEx(&pR0Logger->Logger, 0, ~0U, "hello ring-0 logger (RTLogLoggerEx)\n");
    175175        LogCom(("VMMR0Init: RTLogLoggerEx returned fine offScratch=%d\n", pR0Logger->Logger.offScratch));
     176
     177        RTLogSetDefaultInstanceThread(&pR0Logger->Logger, (uintptr_t)pVM->pSession);
     178        RTLogPrintf("hello ring-0 logger (RTLogPrintf)\n");
     179        LogCom(("VMMR0Init: RTLogPrintf returned fine offScratch=%d\n", pR0Logger->Logger.offScratch));
    176180#endif
    177181        RTLogSetDefaultInstanceThread(&pR0Logger->Logger, (uintptr_t)pVM->pSession);
     
    184188    int rc = HWACCMR0Init(pVM);
    185189    if (VBOX_FAILURE(rc))
     190    {
     191        RTLogSetDefaultInstanceThread(NULL, 0);
    186192        return rc;
     193    }
    187194
    188195    /*
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