Re: [PATCH 03/22] perf tools: Add debug_set_display_time function

From: Jiri Olsa
Date: Tue Jan 19 2021 - 13:06:28 EST


On Tue, Jan 19, 2021 at 11:59:22AM -0300, Arnaldo Carvalho de Melo wrote:

SNIP

> > +}
>
> 78 12.70 ubuntu:18.04-x-sparc64 : FAIL sparc64-linux-gnu-gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
>
> util/debug.c: In function 'fprintf_time':
> util/debug.c:63:32: error: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type '__suseconds_t {aka int}' [-Werror=format=]
> return fprintf(file, "[%s.%06lu] ", date, tod.tv_usec);
> ~~~~^ ~~~~~~~~~~~
> %06u
>
> I'll try to fix it.

thanks, hopefuly the %u will do

jirka