[Intel-gfx] [PATCH i-g-t 3/4] i915/bb: Cleanup 32bit printfs
Chris Wilson
chris at chris-wilson.co.uk
Thu Aug 20 18:26:39 UTC 2020
Use PRIx64 for 64b addresses on a 32b build.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
tests/i915/api_intel_bb.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/tests/i915/api_intel_bb.c b/tests/i915/api_intel_bb.c
index 6967fc5d0..cf7f6e91b 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);
--
2.28.0
More information about the Intel-gfx
mailing list