2020-07-30 10:11:07 +00:00
|
|
|
|
From f540062fc911817907d9a4ddcd518fc939f4ea29 Mon Sep 17 00:00:00 2001
|
2020-07-29 11:20:57 +00:00
|
|
|
|
From: Peter Seiderer <ps.report@gmx.net>
|
|
|
|
|
Date: Sun, 22 Mar 2020 13:03:00 +0100
|
2020-07-30 10:11:07 +00:00
|
|
|
|
Subject: [PATCH 1/3] v3d_bufmgr: fix time_t printf
|
2020-07-29 11:20:57 +00:00
|
|
|
|
MIME-Version: 1.0
|
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
|
|
|
|
|
|
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@gmx.net>
|
|
|
|
|
Reviewed-by: Eric Anholt <eric@anholt.net>
|
|
|
|
|
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4279>
|
|
|
|
|
---
|
|
|
|
|
src/gallium/drivers/v3d/v3d_bufmgr.c | 2 +-
|
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
2.20.1
|
|
|
|
|
|