From 3744f8326ee7e826bee890c00136b1c701536cd3 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 8 Sep 2023 13:58:10 +0200 Subject: [PATCH] [Fix] Correct format string for unw_word_t On x86_64 unw_word_t is uint64_t. NOTE: Possibly incorrect for !x86_64. --- src/libserver/worker_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libserver/worker_util.c b/src/libserver/worker_util.c index 7f41b2cd3..17e1dd65c 100644 --- a/src/libserver/worker_util.c +++ b/src/libserver/worker_util.c @@ -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: ", level, ip); + msg_err("%d: %ul: ", level, ip); } level++; -- 2.39.5