[PATCH] ntdll: provide a timestamp debug channel, which prints a millisecond resolution timestamp in front of debug output, very useful to debug deadlocks (resend)

Alexandre Julliard julliard at winehq.org
Wed Aug 31 05:20:59 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;

Don't add extern statements all over the place, there are functions to
return tick counts. Also you probably want a more readable formatting.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list