Skip to content

Commit

Permalink
[Fix] Correct format string for unw_word_t
Browse files Browse the repository at this point in the history
On x86_64 unw_word_t is uint64_t.

NOTE: Possibly incorrect for !x86_64.
  • Loading branch information
ln5 committed Sep 8, 2023
1 parent f4a6e61 commit 3744f83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libserver/worker_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1639,11 +1639,11 @@ rspamd_print_crash(ucontext_t *uap)
ret = unw_get_proc_name(&cursor, name, sizeof(name), &off);

if (ret == 0) {
msg_err("%d: %p: %s()+0x%xl",
msg_err("%d: %ul: %s()+0x%xl",
level, ip, name, (uintptr_t) off);
}
else {
msg_err("%d: %p: <unknown>", level, ip);
msg_err("%d: %ul: <unknown>", level, ip);
}

level++;
Expand Down

0 comments on commit 3744f83

Please sign in to comment.