From 099b83fd286dddcc5cf0c766241dd2b1a3098796 Mon Sep 17 00:00:00 2001 From: Sahan Fernando Date: Tue, 12 Jan 2021 00:30:22 +1100 Subject: 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. --- Kernel/Thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Kernel/Thread.cpp') 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; } -- cgit v1.2.3