Changeset 40198 in vbox for trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
- Timestamp:
- Feb 21, 2012 2:02:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
r40197 r40198 713 713 pDevExt->fVRDPEnabled = false; 714 714 #endif 715 pDevExt->fLoggingEnabled = false; 715 716 pDevExt->f32PendingEvents = 0; 716 717 pDevExt->u32MousePosChangedSeq = 0; … … 2341 2342 * @returns VBox status code. 2342 2343 * 2344 * @param pDevExt The device extension. 2343 2345 * @param pch The log message (need not be NULL terminated). 2344 2346 * @param cbData Size of the buffer. 2345 2347 * @param pcbDataReturned Where to store the amount of returned data. Can be NULL. 2346 2348 */ 2347 static int VBoxGuestCommonIOCtl_Log( const char *pch, size_t cbData, size_t *pcbDataReturned)2349 static int VBoxGuestCommonIOCtl_Log(PVBOXGUESTDEVEXT pDevExt, const char *pch, size_t cbData, size_t *pcbDataReturned) 2348 2350 { 2349 2351 NOREF(pch); 2350 2352 NOREF(cbData); 2351 Log(("%.*s", cbData, pch)); 2353 if (pDevExt->fLoggingEnabled) 2354 RTLogBackdoorPrintf("%.*s", cbData, pch); 2355 else 2356 Log(("%.*s", cbData, pch)); 2352 2357 if (pcbDataReturned) 2353 2358 *pcbDataReturned = 0; … … 2479 2484 { 2480 2485 CHECKRET_MIN_SIZE("LOG", 1); 2481 rc = VBoxGuestCommonIOCtl_Log( (char *)pvData, cbData, pcbDataReturned);2486 rc = VBoxGuestCommonIOCtl_Log(pDevExt, (char *)pvData, cbData, pcbDataReturned); 2482 2487 } 2483 2488 else
Note:
See TracChangeset
for help on using the changeset viewer.