]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Correct format string for unw_word_t
authorLinus Nordberg <linus@nordberg.se>
Fri, 8 Sep 2023 11:58:10 +0000 (13:58 +0200)
committerLinus Nordberg <linus@nordberg.se>
Fri, 8 Sep 2023 11:58:10 +0000 (13:58 +0200)
On x86_64 unw_word_t is uint64_t.

NOTE: Possibly incorrect for !x86_64.

src/libserver/worker_util.c

index 7f41b2cd3a1cbc89ba06256c708839a47f227755..17e1dd65c6c7098940f056869423063f8bd98704 100644 (file)
@@ -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++;