Changeset 54239 in vbox
- Timestamp:
- Feb 17, 2015 3:29:40 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
r54237 r54239 972 972 */ 973 973 static const char * const s_apszGroups[] = VBOX_LOGGROUP_NAMES; 974 RTUINT fFlags = RTLOGFLAGS_PREFIX_TIME | RTLOGFLAGS_PREFIX_TID975 | RTLOGFLAGS_PREFIX_THREAD | RTLOGFLAGS_PREFIX_TIME_PROG;976 974 PRTLOGGER pRelLogger; 977 rc = RTLogCreate(&pRelLogger, fFlags, "all", 978 #ifdef DEBUG 979 "VBOXGUEST_LOG", 980 #else 981 "VBOXGUEST_RELEASE_LOG", 982 #endif 983 RT_ELEMENTS(s_apszGroups), s_apszGroups, 975 rc = RTLogCreate(&pRelLogger, 0 /*fFlags*/, "all", "VBOXGUEST_RELEASE_LOG", RT_ELEMENTS(s_apszGroups), s_apszGroups, 984 976 RTLOGDEST_STDOUT | RTLOGDEST_DEBUGGER, NULL); 985 977 if (RT_SUCCESS(rc)) 986 {987 978 RTLogRelSetDefaultInstance(pRelLogger); 988 989 /* Explicitly flush the log in case of VBOXGUEST_RELEASE_LOG=buffered. */990 RTLogFlush(pRelLogger);991 }992 979 /** @todo Add native hook for getting logger config parameters and setting 993 * them. On Linux we use the module parameter stuff (see vboxguestLinuxModInit). */980 * them. On linux we should use the module parameter stuff... */ 994 981 #endif 995 982 … … 1357 1344 { 1358 1345 unsigned i; NOREF(i); 1359 LogFlow Func(("pSession=%p proc=%RTproc (%d) r0proc=%p\n",1360 1346 LogFlow(("VBoxGuestCloseSession: pSession=%p proc=%RTproc (%d) r0proc=%p\n", 1347 pSession, pSession->Process, (int)pSession->Process, (uintptr_t)pSession->R0Process)); /** @todo %RTr0proc */ 1361 1348 1362 1349 RTSpinlockAcquire(pDevExt->SessionSpinlock); … … 1375 1362 Info.u32ClientID = pSession->aHGCMClientIds[i]; 1376 1363 pSession->aHGCMClientIds[i] = 0; 1377 Log FlowFunc(("Disconnecting client ID=%#RX32\n", Info.u32ClientID));1364 Log(("VBoxGuestCloseSession: disconnecting client id %#RX32\n", Info.u32ClientID)); 1378 1365 VbglR0HGCMInternalDisconnect(&Info, VBoxGuestHGCMAsyncWaitCallback, pDevExt, RT_INDEFINITE_WAIT); 1379 1366 }
Note:
See TracChangeset
for help on using the changeset viewer.