mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
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:
parent
ba2a0285a6
commit
1c90f0a3c8
|
|
@ -1044,7 +1044,7 @@ static void show_timeofday(void)
|
|||
gettimeofday(&tv, NULL);
|
||||
if (localtime_r(&tv.tv_sec, <ime)) {
|
||||
strftime(date, sizeof(date), "%H:%M:%S", <ime);
|
||||
pr_info("%s.%06ld", date, tv.tv_usec);
|
||||
pr_info("%s.%06ld", date, (long)tv.tv_usec);
|
||||
} else
|
||||
pr_info("00:00:00.000000");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user