diff options
author | Sahan Fernando <sahan.h.fernando@gmail.com> | 2021-01-12 00:30:22 +1100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-11 21:06:32 +0100 |
commit | 099b83fd286dddcc5cf0c766241dd2b1a3098796 (patch) | |
tree | ddd4e749b9e6b977d93f39f0e2ad4b2ca4e0161a /Kernel/Thread.cpp | |
parent | 009c753a12d646617be9a6fec9e99cc1e500d5b5 (diff) | |
download | serenity-099b83fd286dddcc5cf0c766241dd2b1a3098796.zip |
Everywhere: Fix incorrect uses of String::format and StringBuilder::appendf
These changes are arbitrarily divided into multiple commits to make it
easier to find potentially introduced bugs with git bisect.
Diffstat (limited to 'Kernel/Thread.cpp')
-rw-r--r-- | Kernel/Thread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Thread.cpp b/Kernel/Thread.cpp index 71283101f0..9ba54f4ef5 100644 --- a/Kernel/Thread.cpp +++ b/Kernel/Thread.cpp @@ -1000,9 +1000,9 @@ static bool symbolicate(const RecognizedSymbol& symbol, const Process& process, } unsigned offset = symbol.address - symbol.symbol->address; if (symbol.symbol->address == g_highest_kernel_symbol_address && offset > 4096) { - builder.appendf("%p\n", mask_kernel_addresses ? 0xdeadc0de : symbol.address); + builder.appendf("%p\n", (void*)(mask_kernel_addresses ? 0xdeadc0de : symbol.address)); } else { - builder.appendf("%p %s +%u\n", mask_kernel_addresses ? 0xdeadc0de : symbol.address, demangle(symbol.symbol->name).characters(), offset); + builder.appendf("%p %s +%u\n", (void*)(mask_kernel_addresses ? 0xdeadc0de : symbol.address), demangle(symbol.symbol->name).characters(), offset); } return true; } |