Alexandre Julliard : libwine: Print thread id by default in all traces.

Alexandre Julliard julliard at winehq.org
Mon Nov 27 15:05:38 CST 2017


Module: wine
Branch: master
Commit: ec14c220d2041fec1cf4aa011ec8f83e1823c28f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ec14c220d2041fec1cf4aa011ec8f83e1823c28f

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sat Nov 25 11:43:11 2017 +0100

libwine: Print thread id by default in all traces.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 libs/wine/debug.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libs/wine/debug.c b/libs/wine/debug.c
index 8b04ef9..4116b96 100644
--- a/libs/wine/debug.c
+++ b/libs/wine/debug.c
@@ -34,7 +34,6 @@
 #include "wine/library.h"
 
 #if defined(__MINGW32__) || defined(_MSC_VER)
-WINE_DECLARE_DEBUG_CHANNEL(tid);
 WINE_DECLARE_DEBUG_CHANNEL(pid);
 #endif
 
@@ -410,8 +409,7 @@ static int default_dbg_vlog( enum __wine_debug_class cls, struct __wine_debug_ch
 #if defined(__MINGW32__) || defined(_MSC_VER)
     if (TRACE_ON(pid))
         ret += wine_dbg_printf( "%04x:", GetCurrentProcessId() );
-    if (TRACE_ON(tid))
-        ret += wine_dbg_printf( "%04x:", GetCurrentThreadId() );
+    ret += wine_dbg_printf( "%04x:", GetCurrentThreadId() );
 #endif
     if (cls < sizeof(debug_classes)/sizeof(debug_classes[0]))
         ret += wine_dbg_printf( "%s:%s:%s ", debug_classes[cls], channel->name, func );




More information about the wine-cvs mailing list