diff options
author | Lukas Larsson <lukas@erlang.org> | 2021-12-06 14:04:04 +0100 |
---|---|---|
committer | Lukas Larsson <lukas@erlang.org> | 2021-12-06 14:04:04 +0100 |
commit | 1d83d4afd5c1d1128390b3535f755a1ceb0bfe2f (patch) | |
tree | 1c4aa358b86557a7bd8dd4c804d15c5fa16434ff /erts/emulator/beam/erl_process.c | |
parent | bcccb977e94c441cb7de4cdf510bc26f4e5615ea (diff) | |
parent | af8f852a4afe348c2dec5648014ee0a0d404f235 (diff) | |
download | erlang-1d83d4afd5c1d1128390b3535f755a1ceb0bfe2f.tar.gz |
Merge branch 'maint'
Diffstat (limited to 'erts/emulator/beam/erl_process.c')
-rw-r--r-- | erts/emulator/beam/erl_process.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c index f4f9e89169..d9183df242 100644 --- a/erts/emulator/beam/erl_process.c +++ b/erts/emulator/beam/erl_process.c @@ -558,7 +558,7 @@ do { \ static void exec_misc_ops(ErtsRunQueue *); static void print_function_from_pc(fmtfn_t to, void *to_arg, ErtsCodePtr x); -static int stack_element_dump(fmtfn_t to, void *to_arg, Eterm* sp, int yreg); +static Uint stack_element_dump(fmtfn_t to, void *to_arg, Eterm* sp, Uint yreg); static void aux_work_timeout(void *unused); static void aux_work_timeout_early_init(int max_no_aux_work_threads); @@ -14303,7 +14303,7 @@ void erts_stack_dump(fmtfn_t to, void *to_arg, Process *p) { Eterm* sp; - int yreg = -1; + Uint yreg = 0; if (ERTS_TRACE_FLAGS(p) & F_SENSITIVE) { return; @@ -14370,12 +14370,12 @@ print_function_from_pc(fmtfn_t to, void *to_arg, ErtsCodePtr x) } } -static int -stack_element_dump(fmtfn_t to, void *to_arg, Eterm* sp, int yreg) +static Uint +stack_element_dump(fmtfn_t to, void *to_arg, Eterm* sp, Uint yreg) { Eterm x = *sp; - if (yreg < 0 || is_CP(x)) { + if (is_CP(x)) { erts_print(to, to_arg, "\n%p ", sp); } else { char sbuf[16]; |