summaryrefslogtreecommitdiff
path: root/tests/drv_suspend.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2018-09-08 03:50:21 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2018-09-11 17:23:12 +0300
commitb97b528d365a31a994b76ba2daf71b6b8f58575e (patch)
treeb05ae1c40618d5aba594f0f4677ff9dd86ad983d /tests/drv_suspend.c
parent57e3d826dee154cb8664667db7660d854a707fc6 (diff)
Fix 32bit gcc warnings
../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ä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/drv_suspend.c')
-rw-r--r--tests/drv_suspend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/drv_suspend.c b/tests/drv_suspend.c
index b4212dca..84cb3b49 100644
--- a/tests/drv_suspend.c
+++ b/tests/drv_suspend.c
@@ -177,10 +177,10 @@ test_shrink(int fd, unsigned int mode)
intel_purge_vm_caches(fd);
- igt_debug("Locking %'"PRIu64" B (%'"PRIu64" MiB)\n",
+ igt_debug("Locking %'zu B (%'zu MiB)\n",
size, size >> 20);
igt_assert(!mlock(mem, size));
- igt_info("Locked %'"PRIu64" B (%'"PRIu64" MiB)\n",
+ igt_info("Locked %'zu B (%'zu MiB)\n",
size, size >> 20);
intel_purge_vm_caches(fd);