From aebe30426fdf84bc0c6299bb8a0e000a232f4225 Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Mon, 20 Nov 2023 12:11:02 +0800 Subject: [PATCH] Fix formatting in aot_dump_perf_profiling (#2796) Changes %d to %PRIu32. --- core/iwasm/aot/aot_runtime.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/core/iwasm/aot/aot_runtime.c b/core/iwasm/aot/aot_runtime.c index 9912f63f0..ba85fdc26 100644 --- a/core/iwasm/aot/aot_runtime.c +++ b/core/iwasm/aot/aot_runtime.c @@ -2965,12 +2965,14 @@ aot_dump_perf_profiling(const AOTModuleInstance *module_inst) func_name = get_func_name_from_index(module_inst, i); if (func_name) - os_printf(" func %s, execution time: %.3f ms, execution count: %d " - "times\n", - func_name, perf_prof->total_exec_time / 1000.0f, - perf_prof->total_exec_cnt); + os_printf( + " func %s, execution time: %.3f ms, execution count: %" PRIu32 + "times\n", + func_name, perf_prof->total_exec_time / 1000.0f, + perf_prof->total_exec_cnt); else - os_printf(" func %d, execution time: %.3f ms, execution count: %d " + os_printf(" func %" PRIu32 + ", execution time: %.3f ms, execution count: %" PRIu32 "times\n", i, perf_prof->total_exec_time / 1000.0f, perf_prof->total_exec_cnt);