summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-01-21 12:47:04 +0200
committerAndreas Kling <kling@serenityos.org>2022-01-21 16:27:21 +0100
commitd5189b66778103fba1b27c99e30371a95922de92 (patch)
treec609fba638c7fac65823d0c0e972c830c2217e7a
parent77a81f5eed54be8f83b39c041f21b0c9ffe4a351 (diff)
downloadserenity-d5189b66778103fba1b27c99e30371a95922de92.zip
Kernel: Replace {String => KString}::formatted in ACPISysFSDirectory
-rw-r--r--Kernel/Firmware/ACPI/Parser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/Firmware/ACPI/Parser.cpp b/Kernel/Firmware/ACPI/Parser.cpp
index 22dc88f5fa..3e58d56ede 100644
--- a/Kernel/Firmware/ACPI/Parser.cpp
+++ b/Kernel/Firmware/ACPI/Parser.cpp
@@ -73,7 +73,8 @@ UNMAP_AFTER_INIT void ACPISysFSDirectory::find_tables_and_register_them_as_compo
size_t ssdt_count = 0;
ACPI::Parser::the()->enumerate_static_tables([&](StringView signature, PhysicalAddress p_table, size_t length) {
if (signature == "SSDT") {
- components.append(ACPISysFSComponent::create(String::formatted("{:4s}{}", signature.characters_without_null_termination(), ssdt_count), p_table, length));
+ auto component_name = KString::formatted("{:4s}{}", signature.characters_without_null_termination(), ssdt_count).release_value_but_fixme_should_propagate_errors();
+ components.append(ACPISysFSComponent::create(component_name->view(), p_table, length));
ssdt_count++;
return;
}