1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:14:58 +00:00

Kernel: Replace {String => KString}::formatted in ACPISysFSDirectory

This commit is contained in:
Idan Horowitz 2022-01-21 12:47:04 +02:00 committed by Andreas Kling
parent 77a81f5eed
commit d5189b6677

View file

@ -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;
}