diff options
author | Aaron Watry <awatry@gmail.com> | 2016-10-03 09:47:45 -0500 |
---|---|---|
committer | Aaron Watry <awatry@gmail.com> | 2016-11-23 10:15:00 -0600 |
commit | ac458d2ae8e52c5b314db5136e955239d4b43386 (patch) | |
tree | bda6c65e520780ac823ddbe80a626a9e83702257 /src/compiler/glsl/tests/cache_test.c | |
parent | 60c3a0a67c758abd731be49c462da1f14a8f778f (diff) |
compiler/glsl/tests: Fix print format when building 32-bit binaries on 64-bit host
Avoids two warnings.
Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/compiler/glsl/tests/cache_test.c')
-rw-r--r-- | src/compiler/glsl/tests/cache_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler/glsl/tests/cache_test.c b/src/compiler/glsl/tests/cache_test.c index ca22605f3e..0ef05aacb2 100644 --- a/src/compiler/glsl/tests/cache_test.c +++ b/src/compiler/glsl/tests/cache_test.c @@ -30,6 +30,7 @@ #include <ftw.h> #include <errno.h> #include <stdarg.h> +#include <inttypes.h> #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; } |