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:
parent
77a81f5eed
commit
d5189b6677
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue