intel/executor: Use PRIx64 to fix building in 32-bit
Fixes: e72bf2d02f ("intel: Add executor tool")
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30668>
This commit is contained in:
@@ -250,7 +250,7 @@ executor_print_bo(executor_bo *bo, const char *name)
|
||||
uint32_t *dw = bo->map;
|
||||
uint32_t len = (uint32_t *)bo->cursor - dw;
|
||||
|
||||
printf("=== %s (0x%08lx, %lu bytes) ===\n", name, bo->addr, bo->cursor - bo->map);
|
||||
printf("=== %s (0x%08"PRIx64", %lu bytes) ===\n", name, bo->addr, bo->cursor - bo->map);
|
||||
|
||||
for (int i = 0; i < len; i++) {
|
||||
if ((i % 8) == 0) printf("[0x%08x] ", (i*4) + (uint32_t)bo->addr);
|
||||
|
||||
Reference in New Issue
Block a user