Changeset 24267 in vbox
- Timestamp:
- Nov 2, 2009 3:33:06 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 54239
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VM.cpp
r24199 r24267 3555 3555 * Log the error. 3556 3556 */ 3557 RTLogPrintf("VMSetError: %s(%d) %s\n", pszFile, iLine, pszFunction);3558 3557 va_list va3; 3559 3558 va_copy(va3, *pArgs); 3560 RTLogPrintf V(pszFormat,va3);3559 RTLogPrintf("VMSetError: %s(%d) %s\n%N\n", pszFile, iLine, pszFunction, pszFormat, &va3); 3561 3560 va_end(va3); 3562 RTLogPrintf("\n");3563 3561 #endif 3564 3562 … … 3572 3570 * Call the at error callbacks. 3573 3571 */ 3572 bool fCalledSomeone = false; 3574 3573 RTCritSectEnter(&pUVM->vm.s.AtErrorCritSect); 3575 3574 for (PVMATERROR pCur = pUVM->vm.s.pAtError; pCur; pCur = pCur->pNext) … … 3579 3578 pCur->pfnAtError(pUVM->pVM, pCur->pvUser, rc, RT_SRC_POS_ARGS, pszFormat, va2); 3580 3579 va_end(va2); 3580 fCalledSomeone = true; 3581 3581 } 3582 3582 RTCritSectLeave(&pUVM->vm.s.AtErrorCritSect); 3583 3584 /* 3585 * Write the error to the release log if there weren't anyone to callback. 3586 */ 3587 if (!fCalledSomeone) 3588 { 3589 va_list va3; 3590 va_copy(va3, *pArgs); 3591 RTLogRelPrintf("VMSetError: %s(%d) %s\nVMSetError: %N\n", pszFile, iLine, pszFunction, pszFormat, &va3); 3592 va_end(va3); 3593 } 3583 3594 } 3584 3595
Note:
See TracChangeset
for help on using the changeset viewer.