igt/gem_reloc_overflow: 32bit compilation warning

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 <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2016-03-10 10:40:05 +00:00
parent 5ec85f5bf8
commit 778f0796e8

View File

@ -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);