Re: ntdll: provide a timestamp debug channel, which prints a millisecond resolution timestamp in front of debug output, very useful to debug deadlocks
24 Aug
2011
24 Aug
'11
9:48 a.m.
Bernhard Loos <bernhardloos(a)googlemail.com> writes:
@@ -164,8 +165,16 @@ static int NTDLL_dbg_vlog( enum __wine_debug_class cls, struct __wine_debug_chan /* 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(timestamp)) + { + LARGE_INTEGER now; + extern timeout_t server_start_time; + + NtQuerySystemTime( &now ); + ret = wine_dbg_printf( "% 7lld:", (now.QuadPart - server_start_time) / 10000 );
Don't use %ll formats. -- Alexandre Julliard julliard(a)winehq.org
5228
Age (days ago)
5228
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard