Refactor lsacpi command to print ACPI table information

This commit is contained in:
EnderIce2 2024-02-29 00:28:13 +02:00
parent 72ee2075ae
commit 7a6483aea8
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -29,7 +29,11 @@ void cmd_lsacpi(const char *)
ACPI::ACPI *acpi = (ACPI::ACPI *)PowerManager->GetACPI();
foreach (auto Table in acpi->Tables)
{
printf("%s ", Table.first);
KPrint("%#lx: %s [%s:%s]",
Table.second,
Table.second->Signature,
Table.second->OEMID,
Table.second->OEMTableID);
}
putchar('\n');
}