Fix formatting in aot_dump_perf_profiling (#2796)

Changes %d to %PRIu32.
This commit is contained in:
Huang Qi 2023-11-20 12:11:02 +08:00 committed by GitHub
parent 73cd1969f4
commit aebe30426f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);