summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests
diff options
context:
space:
mode:
authorMark Janes <[email protected]>2019-06-05 22:48:41 -0700
committerMark Janes <[email protected]>2019-06-06 14:39:41 -0700
commit04dac6975234d3b4e5da6aa61e6b787cb576f0e6 (patch)
treef38463c014fb1b2524a11f3e0ad0c56ed854ed7c /src/gallium/tests
parent30adeb7a5358d611e01829b000bab6dfee4abed0 (diff)
tests/graw: use C99 print conversion specifier for 32 bit builds
Fixes formatting errors for 32 bit compilations, eg: error: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Werror,-Wformat] printf("result1 = %lu result2 = %lu\n", res1.u64, res2.u64); Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium/tests')
-rw-r--r--src/gallium/tests/graw/occlusion-query.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/tests/graw/occlusion-query.c b/src/gallium/tests/graw/occlusion-query.c
index 444b645cacc..1232c5bb401 100644
--- a/src/gallium/tests/graw/occlusion-query.c
+++ b/src/gallium/tests/graw/occlusion-query.c
@@ -2,6 +2,7 @@
*/
#include <stdio.h>
+#include <inttypes.h>
#include "graw_util.h"
@@ -187,7 +188,7 @@ draw(void)
info.ctx->get_query_result(info.ctx, q1, TRUE, &res1);
info.ctx->get_query_result(info.ctx, q2, TRUE, &res2);
- printf("result1 = %lu result2 = %lu\n", res1.u64, res2.u64);
+ printf("result1 = %" PRIu64 " result2 = %" PRIu64 "\n", res1.u64, res2.u64);
if (res1.u64 < expected1_min || res1.u64 > expected1_max)
printf(" Failure: result1 should be near %d\n", expected1);
if (res2.u64 < expected2_min || res2.u64 > expected2_max)