summaryrefslogtreecommitdiff
path: root/Kernel/ACPI
diff options
context:
space:
mode:
authorSahan Fernando <sahan.h.fernando@gmail.com>2021-01-12 01:35:55 +1100
committerAndreas Kling <kling@serenityos.org>2021-01-11 21:06:32 +0100
commit9bf76a85c8bc41cef8438295042aba991ec42f90 (patch)
tree5201bca8ed9ea0690b82d9548840ce1efbd3ae98 /Kernel/ACPI
parentfe2b8906d47ce2ca95dcd7d374022c43a3e57197 (diff)
downloadserenity-9bf76a85c8bc41cef8438295042aba991ec42f90.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/ACPI')
-rw-r--r--Kernel/ACPI/Parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/ACPI/Parser.cpp b/Kernel/ACPI/Parser.cpp
index e30e2750e8..6a4c9884e4 100644
--- a/Kernel/ACPI/Parser.cpp
+++ b/Kernel/ACPI/Parser.cpp
@@ -280,7 +280,7 @@ void Parser::initialize_main_system_description_table()
#endif
for (u32 i = 0; i < ((length - sizeof(Structures::SDTHeader)) / sizeof(u64)); i++) {
#ifdef ACPI_DEBUG
- dbg() << "ACPI: Found new table [" << i << "], @ V 0x" << String::format("%x", &xsdt.table_ptrs[i]) << " - P 0x" << String::format("%x", xsdt.table_ptrs[i]);
+ dbg() << "ACPI: Found new table [" << i << "], @ V " << String::format("%p", &xsdt.table_ptrs[i]) << " - P 0x" << String::format("%llx", xsdt.table_ptrs[i]);
#endif
m_sdt_pointers.append(PhysicalAddress(xsdt.table_ptrs[i]));
}
@@ -293,7 +293,7 @@ void Parser::initialize_main_system_description_table()
#endif
for (u32 i = 0; i < ((length - sizeof(Structures::SDTHeader)) / sizeof(u32)); i++) {
#ifdef ACPI_DEBUG
- dbg() << "ACPI: Found new table [" << i << "], @ V 0x" << String::format("%x", &rsdt.table_ptrs[i]) << " - P 0x" << String::format("%x", rsdt.table_ptrs[i]);
+ dbg() << "ACPI: Found new table [" << i << "], @ V " << String::format("%p", &rsdt.table_ptrs[i]) << " - P 0x" << String::format("%x", rsdt.table_ptrs[i]);
#endif
m_sdt_pointers.append(PhysicalAddress(rsdt.table_ptrs[i]));
}