mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
tests/graw: use C99 print conversion specifier for 32 bit builds
Fixes formatting errors for 32 bit compilations, eg:
error: format specifies type 'unsigned long' but the argument has
type 'uint64_t' (aka 'unsigned long long') [-Werror,-Wformat]
printf("result1 = %lu result2 = %lu\n", res1.u64, res2.u64);
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
30adeb7a53
commit
04dac69752
1 changed files with 2 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
|||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "graw_util.h"
|
||||
|
||||
|
|
@ -187,7 +188,7 @@ draw(void)
|
|||
info.ctx->get_query_result(info.ctx, q1, TRUE, &res1);
|
||||
info.ctx->get_query_result(info.ctx, q2, TRUE, &res2);
|
||||
|
||||
printf("result1 = %lu result2 = %lu\n", res1.u64, res2.u64);
|
||||
printf("result1 = %" PRIu64 " result2 = %" PRIu64 "\n", res1.u64, res2.u64);
|
||||
if (res1.u64 < expected1_min || res1.u64 > expected1_max)
|
||||
printf(" Failure: result1 should be near %d\n", expected1);
|
||||
if (res2.u64 < expected2_min || res2.u64 > expected2_max)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue