From 209ae6bd41f8ab1940ce168b26f02db11946934c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Wed, 28 Feb 2024 09:12:23 -0800 Subject: [PATCH] intel/tools: Fix compilation in 32 bits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit u64 is long long in 32 bits. Fixes: 90e38bbb3b57 ("intel/tools/error_decode: Parse Xe KMD error dump file") Reviewed-by: Mark Janes Signed-off-by: José Roberto de Souza Part-of: --- src/intel/tools/aubinator_error_decode_xe.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/intel/tools/aubinator_error_decode_xe.c b/src/intel/tools/aubinator_error_decode_xe.c index 94b26f88bf2..800306fde63 100644 --- a/src/intel/tools/aubinator_error_decode_xe.c +++ b/src/intel/tools/aubinator_error_decode_xe.c @@ -348,24 +348,24 @@ read_xe_data_file(FILE *file, switch (type) { case XE_VM_TOPIC_TYPE_DATA: { if (!ascii85_decode_allocated(value_ptr, vm_entry_data, vm_entry_len)) - printf("Failed to parse VMA 0x%lx data\n", address); + printf("Failed to parse VMA 0x%" PRIx64 " data\n", address); break; } case XE_VM_TOPIC_TYPE_LENGTH: { vm_entry_len = strtoul(value_ptr, NULL, 0); vm_entry_data = calloc(1, vm_entry_len); if (!vm_entry_data) { - printf("Out of memory to allocate a buffer to store content of VMA 0x%lx\n", address); + printf("Out of memory to allocate a buffer to store content of VMA 0x%" PRIx64 "\n", address); break; } if (!xe_vm_append(&xe_vm, address, vm_entry_len, vm_entry_data)) { - printf("xe_vm_append() failed for VMA 0x%lx\n", address); + printf("xe_vm_append() failed for VMA 0x%" PRIx64 "\n", address); break; } break; } case XE_VM_TOPIC_TYPE_ERROR: - printf("VMA 0x%lx not present in dump, content will be zeroed. %s\n", address, line); + printf("VMA 0x%" PRIx64 " not present in dump, content will be zeroed. %s\n", address, line); break; default: printf("Not expected line in VM state: %s", line);