Changeset 37216 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine/libWine
- Timestamp:
- May 26, 2011 8:50:49 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/libWine/debug.c
r33656 r37216 44 44 #define MAX_DEBUG_OPTIONS 256 45 45 46 static unsigned char default_flags = (1 << __WINE_DBCL_ERR) | (1 << __WINE_DBCL_FIXME) ;46 static unsigned char default_flags = (1 << __WINE_DBCL_ERR) | (1 << __WINE_DBCL_FIXME) | (1 << __WINE_DBCL_WARN); 47 47 static int nb_debug_options = -1; 48 48 static struct __wine_debug_channel debug_options[MAX_DEBUG_OPTIONS]; … … 393 393 static int default_dbg_vprintf( const char *format, va_list args ) 394 394 { 395 return vfprintf( stderr, format, args ); 395 #ifdef DEBUG_leo 396 static FILE *output=NULL; 397 static int first_time = 1; 398 399 if (first_time) 400 { 401 first_time = 0; 402 output = fopen( "winelog.txt", "w" ); 403 } 404 405 if (output) vfprintf( output, format, args ); 406 #endif 407 return vfprintf( stdout, format, args ); 396 408 } 397 409 … … 404 416 405 417 if (cls < sizeof(debug_classes)/sizeof(debug_classes[0])) 406 ret += wine_dbg_printf( "%s: %s:%s ", debug_classes[cls], channel->name, func );418 ret += wine_dbg_printf( "%s:[%#x]:%s:%s ", debug_classes[cls], GetCurrentThreadId(), channel->name, func ); 407 419 if (format) 408 420 ret += funcs.dbg_vprintf( format, args );
Note:
See TracChangeset
for help on using the changeset viewer.