mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
v3dv: account for 64bit time_t on 32bit arches
This makes is a bit more portable, especially on 32bit architectures
with 64bit time_t defaults. Especially on musl its a must.
Fixes
../mesa-21.3.0/src/broadcom/vulkan/v3dv_bo.c:71:15: error: format specifies type 'long' but the argument has type 'time_t' (aka 'long long') [-Werror,-Wformat]
time.tv_sec);
^~~~~~~~~~~
Also reported here [1]
[1] https://github.com/agherzan/meta-raspberrypi/issues/969
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14118>
This commit is contained in:
parent
e2ad92eb22
commit
249556dad8
1 changed files with 2 additions and 2 deletions
|
|
@ -67,8 +67,8 @@ bo_dump_stats(struct v3dv_device *device)
|
|||
|
||||
struct timespec time;
|
||||
clock_gettime(CLOCK_MONOTONIC, &time);
|
||||
fprintf(stderr, " now: %ld\n",
|
||||
time.tv_sec);
|
||||
fprintf(stderr, " now: %lld\n",
|
||||
(long long)time.tv_sec);
|
||||
}
|
||||
|
||||
if (cache->size_list_size) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue