diff options
author | Peter Seiderer <[email protected]> | 2020-03-22 11:42:35 +0100 |
---|---|---|
committer | Peter Seiderer <[email protected]> | 2020-06-07 18:07:47 +0200 |
commit | 07ba5e47e6674b568219cb91ddbcece20fe9030d (patch) | |
tree | ccd5c6cad8f31aa5b7ea733ac41a3c91d064545d /src/gallium/drivers/vc4 | |
parent | e43ab7bb05857461609ed2bd43703eb272a3ebe1 (diff) |
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 <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4279>
Diffstat (limited to 'src/gallium/drivers/vc4')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_bufmgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |