summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2026-10-17 10:02:45 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-10-17 16:39:29 -0300
commit1c90f0a3c8a1c4e38f9edd97af9e20848805a7fb (patch)
tree6aec308dff13abf3738f2a6c03ea8c22b209405a
parentba2a0285a6266fc551f8fb900b94ab681ba09a23 (diff)
downloadlinux-next-1c90f0a3c8a1c4e38f9edd97af9e20848805a7fb.tar.gz
linux-next-1c90f0a3c8a1c4e38f9edd97af9e20848805a7fb.zip
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>
-rw-r--r--tools/perf/builtin-kvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-kvm.c b/tools/perf/builtin-kvm.c
index c5e82c078848..67eb3f667c99 100644
--- a/tools/perf/builtin-kvm.c
+++ b/tools/perf/builtin-kvm.c
@@ -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");