Changeset 37818 in vbox for trunk/src/VBox/VMM/VMMR3/VMM.cpp
- Timestamp:
- Jul 7, 2011 1:25:03 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/VMM.cpp
r37699 r37818 884 884 * in ring-0. Only initialize it once. 885 885 */ 886 PRTLOGGER const pDefault = RTLog RelDefaultInstance();886 PRTLOGGER const pDefault = RTLogDefaultInstance(); 887 887 for (VMCPUID i = 0; i < pVM->cCpus; i++) 888 888 { … … 901 901 AssertReleaseMsgRCReturn(rc, ("vmmR0LoggerFlush not found! rc=%Rra\n", rc), rc); 902 902 903 rc = RTLogCreateForR0(&pR0LoggerR3->Logger, pR0LoggerR3->cbLogger, pVCpu->vmm.s.pR0LoggerR0 ,903 rc = RTLogCreateForR0(&pR0LoggerR3->Logger, pR0LoggerR3->cbLogger, pVCpu->vmm.s.pR0LoggerR0 + RT_OFFSETOF(VMMR0LOGGER, Logger), 904 904 pfnLoggerWrapper, pfnLoggerFlush, 905 905 RTLOGFLAGS_BUFFERED, RTLOGDEST_DUMMY); … … 909 909 rc = PDMR3LdrGetSymbolR0(pVM, VMMR0_MAIN_MODULE_NAME, "vmmR0LoggerPrefix", &pfnLoggerPrefix); 910 910 AssertReleaseMsgRCReturn(rc, ("vmmR0LoggerPrefix not found! rc=%Rra\n", rc), rc); 911 rc = RTLogSetCustomPrefixCallbackForR0(&pR0LoggerR3->Logger, pVCpu->vmm.s.pR0LoggerR0 , pfnLoggerPrefix, NIL_RTR0PTR);911 rc = RTLogSetCustomPrefixCallbackForR0(&pR0LoggerR3->Logger, pVCpu->vmm.s.pR0LoggerR0 + RT_OFFSETOF(VMMR0LOGGER, Logger), pfnLoggerPrefix, NIL_RTR0PTR); 912 912 AssertReleaseMsgRCReturn(rc, ("RTLogSetCustomPrefixCallback failed! rc=%Rra\n", rc), rc); 913 913 … … 918 918 } 919 919 920 rc = RTLogCopyGroupsAndFlagsForR0(&pR0LoggerR3->Logger, pVCpu->vmm.s.pR0LoggerR0 , pDefault,921 UINT32_MAX, RTLOGFLAGS_BUFFERED);920 rc = RTLogCopyGroupsAndFlagsForR0(&pR0LoggerR3->Logger, pVCpu->vmm.s.pR0LoggerR0 + RT_OFFSETOF(VMMR0LOGGER, Logger), pDefault, 921 RTLOGFLAGS_BUFFERED, UINT32_MAX); 922 922 AssertRC(rc); 923 923 } … … 1293 1293 if ( pR0LoggerR3 1294 1294 && pR0LoggerR3->Logger.offScratch > 0) 1295 RTLogFlush ToLogger(&pR0LoggerR3->Logger, NULL);1295 RTLogFlushR0(NULL, &pR0LoggerR3->Logger); 1296 1296 #endif /* !LOG_ENABLED */ 1297 1297 if (rc != VINF_VMM_CALL_HOST) … … 1980 1980 if ( pVCpu->vmm.s.pR0LoggerR3 1981 1981 && pVCpu->vmm.s.pR0LoggerR3->Logger.offScratch > 0) 1982 RTLogFlush ToLogger(&pVCpu->vmm.s.pR0LoggerR3->Logger, NULL);1982 RTLogFlushR0(NULL, &pVCpu->vmm.s.pR0LoggerR3->Logger); 1983 1983 #endif 1984 1984 if (rc != VINF_VMM_CALL_HOST)
Note:
See TracChangeset
for help on using the changeset viewer.