mirror of
https://github.com/reactos/reactos.git
synced 2024-09-14 14:51:27 +00:00
[LIBWINE]
- Add support for the +tid debug channel, prefixing every traces with the current thread ID. svn path=/trunk/; revision=64538
This commit is contained in:
parent
b80b707083
commit
21616e7b91
5
reactos/lib/3rdparty/libwine/debug.c
vendored
5
reactos/lib/3rdparty/libwine/debug.c
vendored
|
@ -35,6 +35,8 @@
|
||||||
#include <rtlfuncs.h>
|
#include <rtlfuncs.h>
|
||||||
#include <cmfuncs.h>
|
#include <cmfuncs.h>
|
||||||
|
|
||||||
|
WINE_DECLARE_DEBUG_CHANNEL(tid);
|
||||||
|
|
||||||
ULONG
|
ULONG
|
||||||
NTAPI
|
NTAPI
|
||||||
vDbgPrintExWithPrefix(
|
vDbgPrintExWithPrefix(
|
||||||
|
@ -416,6 +418,9 @@ static int default_dbg_vlog( enum __wine_debug_class cls, struct __wine_debug_ch
|
||||||
{
|
{
|
||||||
int ret = 0;
|
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]))
|
if (cls < sizeof(debug_classes)/sizeof(debug_classes[0]))
|
||||||
ret += wine_dbg_printf( "%s:", debug_classes[cls] );
|
ret += wine_dbg_printf( "%s:", debug_classes[cls] );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue