mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 13:40:11 +01:00
compiler/glsl/tests: Fix print format when building 32-bit binaries on 64-bit host
Avoids three warnings. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
5cc07d854c
commit
60c3a0a67c
1 changed files with 8 additions and 2 deletions
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
/* A collection of unit tests for blob.c */
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
|
|
@ -49,7 +50,10 @@ static void
|
|||
expect_equal(uint64_t expected, uint64_t actual, 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;
|
||||
}
|
||||
|
|
@ -59,7 +63,9 @@ static void
|
|||
expect_unequal(uint64_t expected, uint64_t actual, const char *test)
|
||||
{
|
||||
if (actual == expected) {
|
||||
fprintf (stderr, "Error: Test '%s' failed: Result=%ld, but expected something different.\n",
|
||||
fprintf(stderr,
|
||||
"Error: Test '%s' failed: Result=%" PRIu64 ", "
|
||||
"but expected something different.\n",
|
||||
test, actual);
|
||||
error = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue