From: Aaron Watry Date: Mon, 3 Oct 2016 14:47:45 +0000 (-0500) Subject: compiler/glsl/tests: Fix print format when building 32-bit binaries on 64-bit host X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac458d2ae8e52c5b314db5136e955239d4b43386;p=mesa.git compiler/glsl/tests: Fix print format when building 32-bit binaries on 64-bit host Avoids two warnings. Signed-off-by: Aaron Watry Reviewed-by: Matt Turner --- diff --git a/src/compiler/glsl/tests/cache_test.c b/src/compiler/glsl/tests/cache_test.c index ca22605f3e4..0ef05aacb26 100644 --- a/src/compiler/glsl/tests/cache_test.c +++ b/src/compiler/glsl/tests/cache_test.c @@ -30,6 +30,7 @@ #include #include #include +#include #include "util/mesa-sha1.h" #include "util/disk_cache.h" @@ -42,7 +43,8 @@ static void expect_equal(uint64_t actual, uint64_t expected, const char *test) { if (actual != expected) { - fprintf(stderr, "Error: Test '%s' failed: Expected=%ld, Actual=%ld\n", + fprintf(stderr, "Error: Test '%s' failed: Expected=%" PRIu64 + ", Actual=%" PRIu64 "\n", test, expected, actual); error = true; }