Changeset 41635 in vbox for trunk/src/VBox/GuestHost/OpenGL/util/error.c
- Timestamp:
- Jun 9, 2012 12:20:08 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/util/error.c
r41432 r41635 132 132 ); 133 133 fflush( output ); 134 135 #if defined(DEBUG) && defined(WINDOWS) /* && (!defined(DEBUG_misha) || !defined(IN_GUEST) ) */136 OutputDebugString(str);137 OutputDebugString("\n");138 #endif139 134 } 140 135 … … 315 310 #endif 316 311 312 313 #if defined(DEBUG) && defined(WINDOWS) /* && (!defined(DEBUG_misha) || !defined(IN_GUEST) ) */ 314 # define CR_DEBUG_DBGPRINT_ENABLE 315 #endif 316 317 #ifdef CR_DEBUG_DBGPRINT_ENABLE 318 static void crDebugDbgPrint(const char *str) 319 { 320 OutputDebugString(str); 321 OutputDebugString("\n"); 322 } 323 #endif 324 317 325 DECLEXPORT(void) crDebug(const char *format, ... ) 318 326 { … … 331 339 static PFNCRGEDUGBACKDOOR pfnLogBackdoor = NULL; 332 340 #endif 341 #ifdef CR_DEBUG_DBGPRINT_ENABLE 342 static int dbgPrintEnable = 0; 343 #endif 333 344 334 345 if (first_time) … … 348 359 else 349 360 pfnLogBackdoor = crDebugBackdoorRt; 361 } 362 #endif 363 #ifdef CR_DEBUG_DBGPRINT_ENABLE 364 if (crGetenv( "CR_DEBUG_DBGPRINT" )) 365 { 366 dbgPrintEnable = 1; 350 367 } 351 368 #endif … … 409 426 && !pfnLogBackdoor 410 427 #endif 428 #ifdef CR_DEBUG_DBGPRINT_ENABLE 429 && !dbgPrintEnable 430 #endif 411 431 ) 412 432 silent = 1; … … 466 486 } 467 487 #endif 488 #ifdef CR_DEBUG_DBGPRINT_ENABLE 489 if (dbgPrintEnable) 490 { 491 crDebugDbgPrint(txt); 492 } 493 #endif 468 494 #if defined(IN_GUEST) 469 495 outputChromiumMessage( output, txt );
Note:
See TracChangeset
for help on using the changeset viewer.