summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-08-20 19:24:57 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2020-08-21 10:33:36 +0100
commitb71816b6d8d7a9e54d115dd3f4611228755f6a4f (patch)
tree3ba8e420414d749e6020e1f9327e2f9f51c437ee
parent3b3d3ad9f7c553fa021982d43d9322cdc80490d3 (diff)
i915/bb: Cleanup 32bit printfs
Use PRIx64 for 64b addresses on a 32b build. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
-rw-r--r--tests/i915/api_intel_bb.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/i915/api_intel_bb.c b/tests/i915/api_intel_bb.c
index 6967fc5d..cf7f6e91 100644
--- a/tests/i915/api_intel_bb.c
+++ b/tests/i915/api_intel_bb.c
@@ -260,9 +260,9 @@ static void blit(struct buf_ops *bops,
poff_bb = intel_bb_get_object_offset(ibb, ibb->handle);
poff_src = intel_bb_get_object_offset(ibb, src->handle);
poff_dst = intel_bb_get_object_offset(ibb, dst->handle);
- igt_debug("bb presumed offset: 0x%lx\n", poff_bb);
- igt_debug("src presumed offset: 0x%lx\n", poff_src);
- igt_debug("dst presumed offset: 0x%lx\n", poff_dst);
+ igt_debug("bb presumed offset: 0x%"PRIx64"\n", poff_bb);
+ igt_debug("src presumed offset: 0x%"PRIx64"\n", poff_src);
+ igt_debug("dst presumed offset: 0x%"PRIx64"\n", poff_dst);
if (reloc_obj == RELOC) {
igt_assert(poff_bb == 0);
igt_assert(poff_src == 0);
@@ -289,12 +289,12 @@ static void blit(struct buf_ops *bops,
poff2_dst = intel_bb_get_object_offset(ibb, dst->handle);
igt_debug("purge: %d, relocs: %d\n", purge_cache, do_relocs);
- igt_debug("bb presumed offset: 0x%lx\n", poff_bb);
- igt_debug("src presumed offset: 0x%lx\n", poff_src);
- igt_debug("dst presumed offset: 0x%lx\n", poff_dst);
- igt_debug("bb2 presumed offset: 0x%lx\n", poff2_bb);
- igt_debug("src2 presumed offset: 0x%lx\n", poff2_src);
- igt_debug("dst2 presumed offset: 0x%lx\n", poff2_dst);
+ igt_debug("bb presumed offset: 0x%"PRIx64"\n", poff_bb);
+ igt_debug("src presumed offset: 0x%"PRIx64"\n", poff_src);
+ igt_debug("dst presumed offset: 0x%"PRIx64"\n", poff_dst);
+ igt_debug("bb2 presumed offset: 0x%"PRIx64"\n", poff2_bb);
+ igt_debug("src2 presumed offset: 0x%"PRIx64"\n", poff2_src);
+ igt_debug("dst2 presumed offset: 0x%"PRIx64"\n", poff2_dst);
if (purge_cache) {
if (do_relocs) {
igt_assert(poff2_bb == 0);