perf kvm: Cast tv_usec to long to fix build on MIPS 32-bits

Using the same cast we use in util/debug.c with tv_usec.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2026-10-17 10:02:45 -03:00
parent ba2a0285a6
commit 1c90f0a3c8

View File

@ -1044,7 +1044,7 @@ static void show_timeofday(void)
gettimeofday(&tv, NULL);
if (localtime_r(&tv.tv_sec, &ltime)) {
strftime(date, sizeof(date), "%H:%M:%S", &ltime);
pr_info("%s.%06ld", date, tv.tv_usec);
pr_info("%s.%06ld", date, (long)tv.tv_usec);
} else
pr_info("00:00:00.000000");