mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 07:24:37 +00:00
Refactor lsacpi command to print ACPI table information
This commit is contained in:
parent
72ee2075ae
commit
7a6483aea8
@ -29,7 +29,11 @@ void cmd_lsacpi(const char *)
|
|||||||
ACPI::ACPI *acpi = (ACPI::ACPI *)PowerManager->GetACPI();
|
ACPI::ACPI *acpi = (ACPI::ACPI *)PowerManager->GetACPI();
|
||||||
foreach (auto Table in acpi->Tables)
|
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');
|
putchar('\n');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user