From e0c8149c224ec08d95bdd5c0466e49f916602369 Mon Sep 17 00:00:00 2001 From: James Ring Date: Tue, 1 Apr 2025 14:02:25 -0700 Subject: [PATCH] fix format specifier warning on 32bit builds --- core/iwasm/aot/aot_perf_map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/iwasm/aot/aot_perf_map.c b/core/iwasm/aot/aot_perf_map.c index b96bcd1bf4..701929996d 100644 --- a/core/iwasm/aot/aot_perf_map.c +++ b/core/iwasm/aot/aot_perf_map.c @@ -89,12 +89,12 @@ aot_create_perf_map(const AOTModule *module, char *error_buf, for (i = 0; i < module->func_count; i++) { memset(perf_map_info, 0, 128); if (strlen(module_name) > 0) - snprintf(perf_map_info, 128, "%lx %x [%s]#aot_func#%u\n", + snprintf(perf_map_info, 128, PRIxPTR " %x [%s]#aot_func#%u\n", (uintptr_t)sorted_func_ptrs[i].ptr, get_func_size(module, sorted_func_ptrs, i), module_name, sorted_func_ptrs[i].idx); else - snprintf(perf_map_info, 128, "%lx %x aot_func#%u\n", + snprintf(perf_map_info, 128, PRIxPTR " %x aot_func#%u\n", (uintptr_t)sorted_func_ptrs[i].ptr, get_func_size(module, sorted_func_ptrs, i), sorted_func_ptrs[i].idx);