From 778f0796e8afd977ac2f455f2a71c62683ff2006 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 10 Mar 2016 10:40:05 +0000 Subject: [PATCH] igt/gem_reloc_overflow: 32bit compilation warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gem_reloc_overflow.c: In function ‘__real_main365’: gem_reloc_overflow.c:384:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘size_t’ [-Wformat=] igt_require_f(mlock(reloc, reloc_size) == 0, ^ Signed-off-by: Chris Wilson --- tests/gem_reloc_overflow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/gem_reloc_overflow.c b/tests/gem_reloc_overflow.c index 642b73de..d60bec96 100644 --- a/tests/gem_reloc_overflow.c +++ b/tests/gem_reloc_overflow.c @@ -382,8 +382,8 @@ igt_main MAP_PRIVATE | MAP_ANON, -1, 0); igt_assert(reloc != MAP_FAILED); igt_require_f(mlock(reloc, reloc_size) == 0, - "Tests require at least %'lu MiB of available memory\n", - reloc_size / (1024*1024)); + "Tests require at least %'llu MiB of available memory\n", + (long long unsigned)reloc_size / (1024*1024)); /* disable access before + after */ mprotect(reloc, 4096, 0);