From b97b528d365a31a994b76ba2daf71b6b8f58575e Mon Sep 17 00:00:00 2001 From: Ville Syrjälä Date: Sat, 8 Sep 2018 03:50:21 +0300 Subject: Fix 32bit gcc warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../tests/eviction_common.c:158:13: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] etc. Signed-off-by: Ville Syrjälä Reviewed-by: Chris Wilson --- tests/eviction_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/eviction_common.c') diff --git a/tests/eviction_common.c b/tests/eviction_common.c index 8535dfca..321772ba 100644 --- a/tests/eviction_common.c +++ b/tests/eviction_common.c @@ -155,10 +155,10 @@ static void mlocked_evictions(int fd, struct igt_eviction_test_ops *ops, igt_assert(bo); lock -= ALIGN(surface_count * sizeof(*bo), 4096); - igt_debug("Locking %'"PRIu64" B (%'"PRIu64" MiB)\n", + igt_debug("Locking %'zu B (%'zu MiB)\n", lock, lock >> 20); igt_assert(!mlock(mem, lock)); - igt_info("Locked %'"PRIu64" B (%'"PRIu64" MiB)\n", + igt_info("Locked %'zu B (%'zu MiB)\n", lock, lock >> 20); for (n = 0; n < surface_count; n++) @@ -176,7 +176,7 @@ static void mlocked_evictions(int fd, struct igt_eviction_test_ops *ops, */ lock += surface_size; igt_assert(!mlock(mem, lock)); - igt_debug("Total locked %'"PRIu64" B (%'"PRIu64" MiB)\n", + igt_debug("Total locked %'zu B (%'zu MiB)\n", lock, lock >> 20); } -- cgit v1.2.3