diff options
Diffstat (limited to 'meta/recipes-graphics/mesa/files/0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch')
-rw-r--r-- | meta/recipes-graphics/mesa/files/0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/meta/recipes-graphics/mesa/files/0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch b/meta/recipes-graphics/mesa/files/0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch index 901feca556..dacb1ea1c8 100644 --- a/meta/recipes-graphics/mesa/files/0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch +++ b/meta/recipes-graphics/mesa/files/0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 38a313474e127d61e749866423e708fc86ed9ec5 Mon Sep 17 00:00:00 2001 | 1 | From 281a636353666bfdd373c62591e744087e750e89 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 4 Dec 2019 14:15:28 -0800 | 3 | Date: Wed, 4 Dec 2019 14:15:28 -0800 |
4 | Subject: [PATCH] vc4: use intmax_t for formatted output of timespec members | 4 | Subject: [PATCH] vc4: use intmax_t for formatted output of timespec members |
@@ -13,13 +13,14 @@ error: format specifies type 'long' but the argument has type 'time_t' (aka 'lon | |||
13 | 13 | ||
14 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2966] | 14 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2966] |
15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
16 | |||
16 | --- | 17 | --- |
17 | src/gallium/drivers/v3d/v3d_bufmgr.c | 4 ++-- | 18 | src/gallium/drivers/v3d/v3d_bufmgr.c | 4 ++-- |
18 | src/gallium/drivers/vc4/vc4_bufmgr.c | 4 ++-- | 19 | src/gallium/drivers/vc4/vc4_bufmgr.c | 4 ++-- |
19 | 2 files changed, 4 insertions(+), 4 deletions(-) | 20 | 2 files changed, 4 insertions(+), 4 deletions(-) |
20 | 21 | ||
21 | diff --git a/src/gallium/drivers/v3d/v3d_bufmgr.c b/src/gallium/drivers/v3d/v3d_bufmgr.c | 22 | diff --git a/src/gallium/drivers/v3d/v3d_bufmgr.c b/src/gallium/drivers/v3d/v3d_bufmgr.c |
22 | index b3e4d053cc0..c514bf00bf0 100644 | 23 | index 31a0803..cc2e2af 100644 |
23 | --- a/src/gallium/drivers/v3d/v3d_bufmgr.c | 24 | --- a/src/gallium/drivers/v3d/v3d_bufmgr.c |
24 | +++ b/src/gallium/drivers/v3d/v3d_bufmgr.c | 25 | +++ b/src/gallium/drivers/v3d/v3d_bufmgr.c |
25 | @@ -80,8 +80,8 @@ v3d_bo_dump_stats(struct v3d_screen *screen) | 26 | @@ -80,8 +80,8 @@ v3d_bo_dump_stats(struct v3d_screen *screen) |
@@ -27,27 +28,24 @@ index b3e4d053cc0..c514bf00bf0 100644 | |||
27 | struct timespec time; | 28 | struct timespec time; |
28 | clock_gettime(CLOCK_MONOTONIC, &time); | 29 | clock_gettime(CLOCK_MONOTONIC, &time); |
29 | - fprintf(stderr, " now: %ld\n", | 30 | - fprintf(stderr, " now: %ld\n", |
30 | - time.tv_sec); | 31 | - (long)time.tv_sec); |
31 | + fprintf(stderr, " now: %jd\n", | 32 | + fprintf(stderr, " now: %jd\n", |
32 | + (intmax_t)time.tv_sec); | 33 | + (intmax_t)time.tv_sec); |
33 | } | 34 | } |
34 | } | 35 | } |
35 | 36 | ||
36 | diff --git a/src/gallium/drivers/vc4/vc4_bufmgr.c b/src/gallium/drivers/vc4/vc4_bufmgr.c | 37 | diff --git a/src/gallium/drivers/vc4/vc4_bufmgr.c b/src/gallium/drivers/vc4/vc4_bufmgr.c |
37 | index 5ec360934c0..bf05f6cadd6 100644 | 38 | index a786e8e..975d49e 100644 |
38 | --- a/src/gallium/drivers/vc4/vc4_bufmgr.c | 39 | --- a/src/gallium/drivers/vc4/vc4_bufmgr.c |
39 | +++ b/src/gallium/drivers/vc4/vc4_bufmgr.c | 40 | +++ b/src/gallium/drivers/vc4/vc4_bufmgr.c |
40 | @@ -107,8 +107,8 @@ vc4_bo_dump_stats(struct vc4_screen *screen) | 41 | @@ -99,8 +99,8 @@ vc4_bo_dump_stats(struct vc4_screen *screen) |
41 | 42 | ||
42 | struct timespec time; | 43 | struct timespec time; |
43 | clock_gettime(CLOCK_MONOTONIC, &time); | 44 | clock_gettime(CLOCK_MONOTONIC, &time); |
44 | - fprintf(stderr, " now: %ld\n", | 45 | - fprintf(stderr, " now: %ld\n", |
45 | - time.tv_sec); | 46 | - (long)time.tv_sec); |
46 | + fprintf(stderr, " now: %jd\n", | 47 | + fprintf(stderr, " now: %jd\n", |
47 | + (intmax_t)time.tv_sec); | 48 | + (intmax_t)time.tv_sec); |
48 | } | 49 | } |
49 | } | 50 | } |
50 | 51 | ||
51 | -- | ||
52 | 2.24.0 | ||
53 | |||