Skip to content

Commit 6424122

Browse files
authored
fix format specifier warning on 32bit builds (#4177)
1 parent 159b69d commit 6424122

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/iwasm/aot/aot_perf_map.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ aot_create_perf_map(const AOTModule *module, char *error_buf,
8989
for (i = 0; i < module->func_count; i++) {
9090
memset(perf_map_info, 0, 128);
9191
if (strlen(module_name) > 0)
92-
snprintf(perf_map_info, 128, "%lx %x [%s]#aot_func#%u\n",
92+
snprintf(perf_map_info, 128, PRIxPTR " %x [%s]#aot_func#%u\n",
9393
(uintptr_t)sorted_func_ptrs[i].ptr,
9494
get_func_size(module, sorted_func_ptrs, i), module_name,
9595
sorted_func_ptrs[i].idx);
9696
else
97-
snprintf(perf_map_info, 128, "%lx %x aot_func#%u\n",
97+
snprintf(perf_map_info, 128, PRIxPTR " %x aot_func#%u\n",
9898
(uintptr_t)sorted_func_ptrs[i].ptr,
9999
get_func_size(module, sorted_func_ptrs, i),
100100
sorted_func_ptrs[i].idx);

0 commit comments

Comments
 (0)