Skip to content

Commit

Permalink
Merge pull request #4592 from ln5/formatstring
Browse files Browse the repository at this point in the history
[Fix] Correct format string for unw_word_t
  • Loading branch information
vstakhov committed Sep 10, 2023
2 parents f5e3fbe + 5575971 commit 4f96d78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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",
level, ip, name, (uintptr_t) off);
msg_err("%d: 0x%xl: %s()+0x%xl",
level, (unsigned long)ip, name, (unsigned long)off);
}
else {
msg_err("%d: %p: <unknown>", level, ip);
msg_err("%d: %0x%xl: <unknown>", level, (unsigned long)ip);
}

level++;
Expand Down

0 comments on commit 4f96d78

Please sign in to comment.