Author: jgardou
Date: Sun Oct 5 09:57:11 2014
New Revision: 64538
URL:
http://svn.reactos.org/svn/reactos?rev=64538&view=rev
Log:
[LIBWINE]
- Add support for the +tid debug channel, prefixing every traces with the current thread
ID.
Modified:
trunk/reactos/lib/3rdparty/libwine/debug.c
Modified: trunk/reactos/lib/3rdparty/libwine/debug.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/3rdparty/libwine/debug…
==============================================================================
--- trunk/reactos/lib/3rdparty/libwine/debug.c [iso-8859-1] (original)
+++ trunk/reactos/lib/3rdparty/libwine/debug.c [iso-8859-1] Sun Oct 5 09:57:11 2014
@@ -35,6 +35,8 @@
#include <rtlfuncs.h>
#include <cmfuncs.h>
+WINE_DECLARE_DEBUG_CHANNEL(tid);
+
ULONG
NTAPI
vDbgPrintExWithPrefix(
@@ -416,6 +418,9 @@
{
int ret = 0;
+ if (TRACE_ON(tid))
+ ret += wine_dbg_printf("%04x:",
HandleToULong(NtCurrentTeb()->ClientId.UniqueThread));
+
if (cls < sizeof(debug_classes)/sizeof(debug_classes[0]))
ret += wine_dbg_printf( "%s:", debug_classes[cls] );