[PATCH] ntdll: Add a ticks debug channel
Detlef Riekenberg
wine.dev at web.de
Wed Nov 14 16:58:11 CST 2007
---
dlls/ntdll/debugtools.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/debugtools.c b/dlls/ntdll/debugtools.c
index cb08285..5a61af8 100644
--- a/dlls/ntdll/debugtools.c
+++ b/dlls/ntdll/debugtools.c
@@ -39,6 +39,7 @@ #include "winternl.h"
#include "ntdll_misc.h"
WINE_DECLARE_DEBUG_CHANNEL(tid);
+WINE_DECLARE_DEBUG_CHANNEL(ticks);
static struct __wine_debug_functions default_funcs;
@@ -164,8 +165,10 @@ static int NTDLL_dbg_vlog( enum __wine_d
/* only print header if we are at the beginning of the line */
if (info->out_pos == info->output || info->out_pos[-1] == '\n')
{
+ if (TRACE_ON(ticks))
+ ret = wine_dbg_printf( "(%05u)", NtGetTickCount() );
if (TRACE_ON(tid))
- ret = wine_dbg_printf( "%04x:", GetCurrentThreadId() );
+ ret += wine_dbg_printf( "%04x:", GetCurrentThreadId() );
if (cls < sizeof(classes)/sizeof(classes[0]))
ret += wine_dbg_printf( "%s:%s:%s ", classes[cls], channel->name, function );
}
--
1.4.1
--=-2KmGBN59YAg5AJENQfdA--
More information about the wine-patches
mailing list