aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Seiderer <[email protected]>2020-03-22 13:03:00 +0100
committerPeter Seiderer <[email protected]>2020-06-07 18:08:47 +0200
commitb3beb6207f16ac55e3934b4d4d1f178adb4f4cad (patch)
treebc8c5a66c840ace7223f63a8f6a66b64c894e5fd
parentd512028d06c40ba56b642095379638b49ebf4a23 (diff)
v3d_bufmgr: fix time_t printf
Fixes: error: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘time_t’ {aka ‘long long int’} Signed-off-by: Peter Seiderer <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4279>
-rw-r--r--src/gallium/drivers/v3d/v3d_bufmgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/v3d/v3d_bufmgr.c b/src/gallium/drivers/v3d/v3d_bufmgr.c
index 50e4081dafd..31a08036b38 100644
--- a/src/gallium/drivers/v3d/v3d_bufmgr.c
+++ b/src/gallium/drivers/v3d/v3d_bufmgr.c
@@ -81,7 +81,7 @@ v3d_bo_dump_stats(struct v3d_screen *screen)
struct timespec time;
clock_gettime(CLOCK_MONOTONIC, &time);
fprintf(stderr, " now: %ld\n",
- time.tv_sec);
+ (long)time.tv_sec);
}
}