Skip to content

Commit bda012e

Browse files
author
Georgii Rylov
committed
formatting
1 parent fc3077b commit bda012e

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

core/iwasm/aot/aot_runtime.c

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4106,8 +4106,9 @@ aot_frame_update_profile_info(WASMExecEnv *exec_env, bool alloc_frame)
41064106

41074107
#if WAMR_ENABLE_COPY_CALLSTACK != 0
41084108
uint32
4109-
aot_copy_callstack_tiny_frame(WASMExecEnv *exec_env, wasm_frame_t* buffer,
4110-
const uint32 length, const uint32 skip_n, char *error_buf, uint32 error_buf_size)
4109+
aot_copy_callstack_tiny_frame(WASMExecEnv *exec_env, wasm_frame_t *buffer,
4110+
const uint32 length, const uint32 skip_n,
4111+
char *error_buf, uint32 error_buf_size)
41114112
{
41124113
/*
41134114
* Note for devs: please refrain from such modifications inside of
@@ -4127,14 +4128,15 @@ aot_copy_callstack_tiny_frame(WASMExecEnv *exec_env, wasm_frame_t* buffer,
41274128
bool is_top_index_in_range =
41284129
top_boundary >= top && top >= (bottom + sizeof(AOTTinyFrame));
41294130
if (!is_top_index_in_range) {
4130-
char* err_msg = "Top of the stack pointer is outside of the stack boundaries";
4131+
char *err_msg =
4132+
"Top of the stack pointer is outside of the stack boundaries";
41314133
strncpy(error_buf, err_msg, error_buf_size);
41324134
return 0;
41334135
}
41344136
bool is_top_aligned_with_bottom =
41354137
(unsigned long)(top - bottom) % sizeof(AOTTinyFrame) == 0;
41364138
if (!is_top_aligned_with_bottom) {
4137-
char* err_msg = "Top of the stack is not aligned with the bottom";
4139+
char *err_msg = "Top of the stack is not aligned with the bottom";
41384140
strncpy(error_buf, err_msg, error_buf_size);
41394141
return 0;
41404142
}
@@ -4159,9 +4161,9 @@ aot_copy_callstack_tiny_frame(WASMExecEnv *exec_env, wasm_frame_t* buffer,
41594161
}
41604162

41614163
uint32
4162-
aot_copy_callstack_standard_frame(WASMExecEnv *exec_env,
4163-
wasm_frame_t* buffer, const uint32 length,
4164-
const uint32 skip_n, char *error_buf, uint32_t error_buf_size)
4164+
aot_copy_callstack_standard_frame(WASMExecEnv *exec_env, wasm_frame_t *buffer,
4165+
const uint32 length, const uint32 skip_n,
4166+
char *error_buf, uint32_t error_buf_size)
41654167
{
41664168
/*
41674169
* Note for devs: please refrain from such modifications inside of
@@ -4208,8 +4210,9 @@ aot_copy_callstack_standard_frame(WASMExecEnv *exec_env,
42084210
}
42094211

42104212
uint32
4211-
aot_copy_callstack(WASMExecEnv *exec_env, wasm_frame_t* buffer,
4212-
const uint32 length, const uint32 skip_n, char *error_buf, uint32_t error_buf_size)
4213+
aot_copy_callstack(WASMExecEnv *exec_env, wasm_frame_t *buffer,
4214+
const uint32 length, const uint32 skip_n, char *error_buf,
4215+
uint32_t error_buf_size)
42134216
{
42144217
/*
42154218
* Note for devs: please refrain from such modifications inside of
@@ -4221,11 +4224,12 @@ aot_copy_callstack(WASMExecEnv *exec_env, wasm_frame_t* buffer,
42214224
* wasm_export.h
42224225
*/
42234226
if (!is_tiny_frame(exec_env)) {
4224-
return aot_copy_callstack_standard_frame(exec_env, buffer, length,
4225-
skip_n, error_buf, error_buf_size);
4227+
return aot_copy_callstack_standard_frame(
4228+
exec_env, buffer, length, skip_n, error_buf, error_buf_size);
42264229
}
42274230
else {
4228-
return aot_copy_callstack_tiny_frame(exec_env, buffer, length, skip_n, error_buf, error_buf_size);
4231+
return aot_copy_callstack_tiny_frame(exec_env, buffer, length, skip_n,
4232+
error_buf, error_buf_size);
42294233
}
42304234
}
42314235
#endif // WAMR_ENABLE_COPY_CALLSTACK

0 commit comments

Comments
 (0)