VirtualBox

Changeset 24567 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 10, 2009 8:05:55 PM (15 years ago)
Author:
vboxsync
Message:

VM.cpp: Always write VMSetError messages to the release log. Main may delay logging them and confuse things.

File:
1 edited

Legend:

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

    r24508 r24567  
    35783578DECLCALLBACK(void) vmR3SetErrorUV(PUVM pUVM, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list *pArgs)
    35793579{
     3580    /*
     3581     * Log the error.
     3582     */
     3583    va_list va3;
     3584    va_copy(va3, *pArgs);
     3585    RTLogRelPrintf("VMSetError: %s(%d) %s\nVMSetError: %N\n", pszFile, iLine, pszFunction, pszFormat, &va3);
     3586    va_end(va3);
     3587
    35803588#ifdef LOG_ENABLED
    3581     /*
    3582      * Log the error.
    3583      */
    3584     va_list va3;
    35853589    va_copy(va3, *pArgs);
    35863590    RTLogPrintf("VMSetError: %s(%d) %s\n%N\n", pszFile, iLine, pszFunction, pszFormat, &va3);
     
    36093613    }
    36103614    RTCritSectLeave(&pUVM->vm.s.AtErrorCritSect);
    3611 
    3612     /*
    3613      * Write the error to the release log if there weren't anyone to callback.
    3614      */
    3615     if (!fCalledSomeone)
    3616     {
    3617         va_list va3;
    3618         va_copy(va3, *pArgs);
    3619         RTLogRelPrintf("VMSetError: %s(%d) %s\nVMSetError: %N\n", pszFile, iLine, pszFunction, pszFormat, &va3);
    3620         va_end(va3);
    3621     }
    36223615}
    36233616
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