diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-10 10:40:05 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-10 10:58:11 +0000 |
commit | 778f0796e8afd977ac2f455f2a71c62683ff2006 (patch) | |
tree | bd2bac472f4b406500f4622d1675c0bb1c954d1c | |
parent | 5ec85f5bf8969e46cd70cffccaafb62078355414 (diff) |
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>
-rw-r--r-- | tests/gem_reloc_overflow.c | 4 |
1 files 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); |