mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Update lsacpi command to print table length
This commit is contained in:
parent
e02bcf8e0d
commit
fbb59f2187
@ -29,10 +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)
|
||||||
{
|
{
|
||||||
KPrint("%#lx: %.4s [%.6s:%.8s]",
|
printf("%#lx: %.4s [%.6s:%.8s] %d bytes\n",
|
||||||
Table.second,
|
(uintptr_t)Table.second,
|
||||||
Table.second->Signature,
|
Table.second->Signature,
|
||||||
Table.second->OEMID,
|
Table.second->OEMID,
|
||||||
Table.second->OEMTableID);
|
Table.second->OEMTableID,
|
||||||
|
Table.second->Length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user