|
3 | 3 | * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
4 | 4 | */ |
5 | 5 |
|
| 6 | +#include <inttypes.h> |
| 7 | + |
6 | 8 | #include "aot_perf_map.h" |
7 | 9 | #include "bh_log.h" |
8 | 10 | #include "bh_platform.h" |
@@ -89,12 +91,12 @@ aot_create_perf_map(const AOTModule *module, char *error_buf, |
89 | 91 | for (i = 0; i < module->func_count; i++) { |
90 | 92 | memset(perf_map_info, 0, 128); |
91 | 93 | if (strlen(module_name) > 0) |
92 | | - snprintf(perf_map_info, 128, "%lx %x [%s]#aot_func#%u\n", |
| 94 | + snprintf(perf_map_info, 128, PRIuPTR " %x [%s]#aot_func#%u\n", |
93 | 95 | (uintptr_t)sorted_func_ptrs[i].ptr, |
94 | 96 | get_func_size(module, sorted_func_ptrs, i), module_name, |
95 | 97 | sorted_func_ptrs[i].idx); |
96 | 98 | else |
97 | | - snprintf(perf_map_info, 128, "%lx %x aot_func#%u\n", |
| 99 | + snprintf(perf_map_info, 128, PRIuPTR " %x aot_func#%u\n", |
98 | 100 | (uintptr_t)sorted_func_ptrs[i].ptr, |
99 | 101 | get_func_size(module, sorted_func_ptrs, i), |
100 | 102 | sorted_func_ptrs[i].idx); |
|
0 commit comments