mirror of
https://github.com/acpica/acpica/
synced 2025-02-12 11:34:42 +03:00
Update table header print function.
Cleanup table header output.
This commit is contained in:
parent
14b8df76ec
commit
b408d6f1bf
@ -202,19 +202,23 @@ AcpiTbPrintTableHeader (
|
||||
ACPI_TABLE_HEADER *Header)
|
||||
{
|
||||
|
||||
/*
|
||||
* The reason that the Address is cast to a void pointer is so that we
|
||||
* can use %p which will work properly on both 32-bit and 64-bit hosts.
|
||||
*/
|
||||
if (ACPI_COMPARE_NAME (Header->Signature, ACPI_SIG_FACS))
|
||||
{
|
||||
/* FACS only has signature and length fields of common table header */
|
||||
/* FACS only has signature and length fields */
|
||||
|
||||
ACPI_INFO ((AE_INFO, "%4.4s @ 0x%p/0x%04X",
|
||||
Header->Signature, ACPI_CAST_PTR (UINT64, Address),
|
||||
ACPI_INFO ((AE_INFO, "%4.4s %p %05X",
|
||||
Header->Signature, ACPI_CAST_PTR (void, Address),
|
||||
Header->Length));
|
||||
}
|
||||
else if (ACPI_COMPARE_NAME (Header->Signature, ACPI_SIG_RSDP))
|
||||
{
|
||||
/* RSDP has no common fields */
|
||||
|
||||
ACPI_INFO ((AE_INFO, "RSDP @ 0x%p/0x%04X (v%3.3d %6.6s)",
|
||||
ACPI_INFO ((AE_INFO, "RSDP %p %05X (v%.2d %6.6s)",
|
||||
ACPI_CAST_PTR (void, Address),
|
||||
(ACPI_CAST_PTR (ACPI_TABLE_RSDP, Header)->Revision > 0) ?
|
||||
ACPI_CAST_PTR (ACPI_TABLE_RSDP, Header)->Length : 20,
|
||||
@ -226,7 +230,7 @@ AcpiTbPrintTableHeader (
|
||||
/* Standard ACPI table with full common header */
|
||||
|
||||
ACPI_INFO ((AE_INFO,
|
||||
"%4.4s @ 0x%p/0x%04X (v%3.3d %6.6s %8.8s 0x%08X %4.4s 0x%08X)",
|
||||
"%4.4s %p %05X (v%.2d %6.6s %8.8s %08X %4.4s %08X)",
|
||||
Header->Signature, ACPI_CAST_PTR (void, Address),
|
||||
Header->Length, Header->Revision, Header->OemId,
|
||||
Header->OemTableId, Header->OemRevision, Header->AslCompilerId,
|
||||
|
Loading…
x
Reference in New Issue
Block a user