ntdll: provide a timestamp debug channel, which prints a millisecond resolution timestamp in front of debug output, very useful to debug deadlocks

Alexandre Julliard julliard at winehq.org
Wed Aug 24 04:48:26 CDT 2011


Bernhard Loos <bernhardloos at 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 at winehq.org



More information about the wine-devel mailing list