Update lsacpi command to print table length

This commit is contained in:
EnderIce2 2024-02-29 00:46:04 +02:00
parent e02bcf8e0d
commit fbb59f2187
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -29,10 +29,11 @@ void cmd_lsacpi(const char *)
ACPI::ACPI *acpi = (ACPI::ACPI *)PowerManager->GetACPI();
foreach (auto Table in acpi->Tables)
{
KPrint("%#lx: %.4s [%.6s:%.8s]",
Table.second,
printf("%#lx: %.4s [%.6s:%.8s] %d bytes\n",
(uintptr_t)Table.second,
Table.second->Signature,
Table.second->OEMID,
Table.second->OEMTableID);
Table.second->OEMTableID,
Table.second->Length);
}
}