vc4: use intmax_t for formatted output of timespec members
authorKhem Raj <raj.khem@gmail.com>
Wed, 4 Dec 2019 22:15:28 +0000 (14:15 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 5 Nov 2020 07:07:39 +0000 (07:07 +0000)
commite331fd7fc42175aa7f466c96f1fcf42777909c9b
tree8c8a2b32f9970a14dc2edeeb7cae9f6550bfaeaa
parentc8630fd1143f055249a35877aa056878e56d00c3
vc4: use intmax_t for formatted output of timespec members

32bit architectures which have 64bit time_t does not fit the assumption
of time_t being same as system long int

Fixes
error: format specifies type 'long' but the argument has type 'time_t' (aka 'long long') [-Werror,-Wformat]
                        time.tv_sec);
                        ^~~~~~~~~~~

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/2966>
src/gallium/drivers/v3d/v3d_bufmgr.c
src/gallium/drivers/vc4/vc4_bufmgr.c