|
@@ -3048,12 +3048,14 @@ wasm_interp_dump_call_stack(struct WASMExecEnv *exec_env, bool print, char *buf,
|
|
|
|
|
|
|
|
/* function name not exported, print number instead */
|
|
/* function name not exported, print number instead */
|
|
|
if (frame.func_name_wp == NULL) {
|
|
if (frame.func_name_wp == NULL) {
|
|
|
- line_length = snprintf(line_buf, sizeof(line_buf), "#%02d $f%d\n",
|
|
|
|
|
- n, frame.func_index);
|
|
|
|
|
|
|
+ line_length =
|
|
|
|
|
+ snprintf(line_buf, sizeof(line_buf),
|
|
|
|
|
+ "#%02" PRIu32 " $f%" PRIu32 "\n", n, frame.func_index);
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
- line_length = snprintf(line_buf, sizeof(line_buf), "#%02d %s\n", n,
|
|
|
|
|
- frame.func_name_wp);
|
|
|
|
|
|
|
+ line_length =
|
|
|
|
|
+ snprintf(line_buf, sizeof(line_buf), "#%02" PRIu32 " %s\n", n,
|
|
|
|
|
+ frame.func_name_wp);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (line_length >= sizeof(line_buf)) {
|
|
if (line_length >= sizeof(line_buf)) {
|