From 5ec85f5bf8969e46cd70cffccaafb62078355414 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 10 Mar 2016 10:36:24 +0000 Subject: [PATCH] igt/gem_concurrent_blit: 32bit compilation warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gem_concurrent_all.c: In function ‘__real_main1556’: gem_concurrent_all.c:1642:4: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘uint64_t’ [-Wformat=] igt_debug("Pinning %ld MiB\n", pin_sz); Signed-off-by: Chris Wilson --- tests/gem_concurrent_all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gem_concurrent_all.c b/tests/gem_concurrent_all.c index a987ed8d..819a2028 100644 --- a/tests/gem_concurrent_all.c +++ b/tests/gem_concurrent_all.c @@ -1639,7 +1639,7 @@ igt_main num_buffers = gem_mappable_aperture_size() / (1024 * 1024); pin_sz = intel_get_avail_ram_mb() - num_buffers; - igt_debug("Pinning %ld MiB\n", pin_sz); + igt_debug("Pinning %lld MiB\n", (long long)pin_sz); pin_sz *= 1024 * 1024; if (posix_memalign(&pinned, 4096, pin_sz) ||