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>
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
#include <ftw.h>
|
#include <ftw.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
#include "util/mesa-sha1.h"
|
#include "util/mesa-sha1.h"
|
||||||
#include "util/disk_cache.h"
|
#include "util/disk_cache.h"
|
||||||
@@ -42,7 +43,8 @@ static void
|
|||||||
expect_equal(uint64_t actual, uint64_t expected, const char *test)
|
expect_equal(uint64_t actual, uint64_t expected, const char *test)
|
||||||
{
|
{
|
||||||
if (actual != expected) {
|
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);
|
test, expected, actual);
|
||||||
error = true;
|
error = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user