Commit e422a22e authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

libwine: Added tid debug channel support on native Windows builds.

parent 506b369c
......@@ -33,6 +33,10 @@
#include "wine/debug.h"
#include "wine/library.h"
#if defined(__MINGW32__) || defined(_MSC_VER)
WINE_DECLARE_DEBUG_CHANNEL(tid);
#endif
static const char * const debug_classes[] = { "fixme", "err", "warn", "trace" };
#define MAX_DEBUG_OPTIONS 256
......@@ -402,6 +406,10 @@ static int default_dbg_vlog( enum __wine_debug_class cls, struct __wine_debug_ch
{
int ret = 0;
#if defined(__MINGW32__) || defined(_MSC_VER)
if (TRACE_ON(tid))
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 );
if (format)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment