Mesa (master): vc4_bufmgr: fix time_t printf
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun Jun 7 17:13:16 UTC 2020
Module: Mesa
Branch: master
Commit: 07ba5e47e6674b568219cb91ddbcece20fe9030d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=07ba5e47e6674b568219cb91ddbcece20fe9030d
Author: Peter Seiderer <ps.report at gmx.net>
Date: Sun Mar 22 11:42:35 2020 +0100
vc4_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 <ps.report at gmx.net>
Reviewed-by: Eric Anholt <eric at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4279>
---
src/gallium/drivers/vc4/vc4_bufmgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/vc4/vc4_bufmgr.c b/src/gallium/drivers/vc4/vc4_bufmgr.c
index f7ac1698ee3..a786e8ee939 100644
--- a/src/gallium/drivers/vc4/vc4_bufmgr.c
+++ b/src/gallium/drivers/vc4/vc4_bufmgr.c
@@ -100,7 +100,7 @@ vc4_bo_dump_stats(struct vc4_screen *screen)
struct timespec time;
clock_gettime(CLOCK_MONOTONIC, &time);
fprintf(stderr, " now: %ld\n",
- time.tv_sec);
+ (long)time.tv_sec);
}
}
More information about the mesa-commit
mailing list