Changeset 20854 in vbox for trunk/src/VBox/VMM/VMM.cpp
- Timestamp:
- Jun 23, 2009 4:32:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMM.cpp
r20792 r20854 808 808 * in ring-0. Only initialize it once. 809 809 */ 810 for ( unsignedi = 0; i < pVM->cCPUs; i++)810 for (VMCPUID i = 0; i < pVM->cCPUs; i++) 811 811 { 812 812 PVMCPU pVCpu = &pVM->aCpus[i]; … … 818 818 RTR0PTR pfnLoggerWrapper = NIL_RTR0PTR; 819 819 rc = PDMR3LdrGetSymbolR0(pVM, VMMR0_MAIN_MODULE_NAME, "vmmR0LoggerWrapper", &pfnLoggerWrapper); 820 AssertReleaseMsgRCReturn(rc, (" VMMLoggerWrapper not found! rc=%Rra\n", rc), rc);820 AssertReleaseMsgRCReturn(rc, ("vmmR0LoggerWrapper not found! rc=%Rra\n", rc), rc); 821 821 822 822 RTR0PTR pfnLoggerFlush = NIL_RTR0PTR; 823 823 rc = PDMR3LdrGetSymbolR0(pVM, VMMR0_MAIN_MODULE_NAME, "vmmR0LoggerFlush", &pfnLoggerFlush); 824 AssertReleaseMsgRCReturn(rc, (" VMMLoggerFlush not found! rc=%Rra\n", rc), rc);824 AssertReleaseMsgRCReturn(rc, ("vmmR0LoggerFlush not found! rc=%Rra\n", rc), rc); 825 825 826 826 rc = RTLogCreateForR0(&pR0LoggerR3->Logger, pR0LoggerR3->cbLogger, 827 *(PFNRTLOGGER *)&pfnLoggerWrapper, *(PFNRTLOGFLUSH *)&pfnLoggerFlush,828 RTLOGFLAGS_BUFFERED, RTLOGDEST_DUMMY);827 *(PFNRTLOGGER *)&pfnLoggerWrapper, *(PFNRTLOGFLUSH *)&pfnLoggerFlush, 828 RTLOGFLAGS_BUFFERED, RTLOGDEST_DUMMY); 829 829 AssertReleaseMsgRCReturn(rc, ("RTLogCreateForR0 failed! rc=%Rra\n", rc), rc); 830 831 RTR0PTR pfnLoggerPrefix = NIL_RTR0PTR; 832 rc = PDMR3LdrGetSymbolR0(pVM, VMMR0_MAIN_MODULE_NAME, "vmmR0LoggerPrefix", &pfnLoggerPrefix); 833 AssertReleaseMsgRCReturn(rc, ("vmmR0LoggerPrefix not found! rc=%Rra\n", rc), rc); 834 rc = RTLogSetCustomPrefixCallback(&pR0LoggerR3->Logger, *(PFNRTLOGPREFIX *)&pfnLoggerPrefix, NULL); 835 AssertReleaseMsgRCReturn(rc, ("RTLogSetCustomPrefixCallback failed! rc=%Rra\n", rc), rc); 836 837 pR0LoggerR3->idCpu = i; 830 838 pR0LoggerR3->fCreated = true; 831 839 pR0LoggerR3->fFlushingDisabled = false; 840 832 841 } 833 842
Note:
See TracChangeset
for help on using the changeset viewer.