diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-09-08 03:50:21 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-09-11 17:23:12 +0300 |
commit | b97b528d365a31a994b76ba2daf71b6b8f58575e (patch) | |
tree | b05ae1c40618d5aba594f0f4677ff9dd86ad983d /tests/eviction_common.c | |
parent | 57e3d826dee154cb8664667db7660d854a707fc6 (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/eviction_common.c')
-rw-r--r-- | tests/eviction_common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/eviction_common.c b/tests/eviction_common.c index 8535dfca..321772ba 100644 --- a/tests/eviction_common.c +++ b/tests/eviction_common.c @@ -155,10 +155,10 @@ static void mlocked_evictions(int fd, struct igt_eviction_test_ops *ops, igt_assert(bo); lock -= ALIGN(surface_count * sizeof(*bo), 4096); - igt_debug("Locking %'"PRIu64" B (%'"PRIu64" MiB)\n", + igt_debug("Locking %'zu B (%'zu MiB)\n", lock, lock >> 20); igt_assert(!mlock(mem, lock)); - igt_info("Locked %'"PRIu64" B (%'"PRIu64" MiB)\n", + igt_info("Locked %'zu B (%'zu MiB)\n", lock, lock >> 20); for (n = 0; n < surface_count; n++) @@ -176,7 +176,7 @@ static void mlocked_evictions(int fd, struct igt_eviction_test_ops *ops, */ lock += surface_size; igt_assert(!mlock(mem, lock)); - igt_debug("Total locked %'"PRIu64" B (%'"PRIu64" MiB)\n", + igt_debug("Total locked %'zu B (%'zu MiB)\n", lock, lock >> 20); } |