summaryrefslogtreecommitdiff
path: root/tools
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 /tools
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 'tools')
-rw-r--r--tools/aubdump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/aubdump.c b/tools/aubdump.c
index 2d2b6c60..00e19712 100644
--- a/tools/aubdump.c
+++ b/tools/aubdump.c
@@ -496,7 +496,7 @@ gen8_map_ggtt_range(uint64_t start, uint64_t end)
break;
if (verbose)
- printf("MAPPING 0x%08lx-0x%08lx\n",
+ printf("MAPPING 0x%08"PRIx64"-0x%08"PRIx64"\n",
(uint64_t)pos1 << 12, (uint64_t)pos2 << 12);
gen8_emit_ggtt_pte_for_range((uint64_t)pos1 << 12,
(uint64_t)pos2 << 12);
@@ -960,14 +960,14 @@ dump_execbuffer2(int fd, struct drm_i915_gem_execbuffer2 *execbuffer2)
if (obj->flags & EXEC_OBJECT_PINNED) {
bo->offset = obj->offset;
if (verbose)
- printf("BO #%d (%dB) pinned @ 0x%lx\n",
+ printf("BO #%d (%dB) pinned @ 0x%"PRIx64"\n",
obj->handle, bo->size, bo->offset);
} else {
if (obj->alignment != 0)
offset = align_u32(offset, obj->alignment);
bo->offset = offset;
if (verbose)
- printf("BO #%d (%dB) @ 0x%lx\n", obj->handle,
+ printf("BO #%d (%dB) @ 0x%"PRIx64"\n", obj->handle,
bo->size, bo->offset);
offset = align_u32(offset + bo->size + 4095, 4096);
}