compiler/glsl/tests: Fix print format when building 32-bit binaries on 64-bit host
authorAaron Watry <awatry@gmail.com>
Mon, 3 Oct 2016 14:47:45 +0000 (09:47 -0500)
committerAaron Watry <awatry@gmail.com>
Wed, 23 Nov 2016 16:15:00 +0000 (10:15 -0600)
Avoids two warnings.

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/glsl/tests/cache_test.c

index ca22605f3e4b3890cc1387bb84d36b8a9764338f..0ef05aacb265482ba65d6cbd8f09f010a8bd14ac 100644 (file)
@@ -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;
    }