commit 3744f83: [Fix] Correct format string for unw_word_t
Linus Nordberg
linus at nordberg.se
Sun Sep 10 07:14:03 UTC 2023
Author: Linus Nordberg
Date: 2023-09-08 13:58:10 +0200
URL: https://github.com/rspamd/rspamd/commit/3744f8326ee7e826bee890c00136b1c701536cd3
[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: <unknown>", level, ip);
+ msg_err("%d: %ul: <unknown>", level, ip);
}
level++;
More information about the Commits
mailing list