]> www.infradead.org Git - linux.git/commit
perf daemon: Fix the build on 32-bit architectures
authorArnaldo Carvalho de Melo <arnaldo.melo@gmail.com>
Thu, 18 Jul 2024 19:38:07 +0000 (16:38 -0300)
committerNamhyung Kim <namhyung@kernel.org>
Sat, 10 Aug 2024 02:36:20 +0000 (19:36 -0700)
commit4bbe6002931954bbe82b25f25990b987b0392e18
treec7502dee6b94fe9c89bfec301dfe6b90b6775686
parentd5b854893d27b4030943a10cf28a07189aab0c36
perf daemon: Fix the build on 32-bit architectures

Noticed with:

   1     6.22 debian:experimental-x-mipsel  : FAIL gcc version 13.2.0 (Debian 13.2.0-25)
    builtin-daemon.c: In function 'cmd_session_list':
    builtin-daemon.c:691:35: error: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'time_t' {aka 'long long int'} [-Werror=format=]

Use inttypes.h's PRIu64 to deal with that.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: https://lore.kernel.org/r/ZplvH21aQ8pzmza_@x1
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-daemon.c