|
|
9897bb |
From 62cc2f4ae212bd0fad83f643921ac216ebb9a986 Mon Sep 17 00:00:00 2001
|
|
|
9897bb |
From: Al Stone <ahs3@redhat.com>
|
|
|
9897bb |
Date: Fri, 18 Sep 2020 15:20:37 -0600
|
|
|
9897bb |
Subject: [PATCH 03/45] Always display table header content in human-readable
|
|
|
9897bb |
form
|
|
|
9897bb |
|
|
|
9897bb |
When comparing two binary data tables, little-endian values are read
|
|
|
9897bb |
from each table header and printed out. Make sure they show up in a
|
|
|
9897bb |
form that makes sense to humans.
|
|
|
9897bb |
|
|
|
9897bb |
Signed-off-by: Al Stone <ahs3@redhat.com>
|
|
|
9897bb |
---
|
|
|
9897bb |
source/tools/acpibin/abcompare.c | 7 ++++---
|
|
|
9897bb |
1 file changed, 4 insertions(+), 3 deletions(-)
|
|
|
9897bb |
|
|
|
9897bb |
Index: acpica-unix2-20210604/source/tools/acpibin/abcompare.c
|
|
|
9897bb |
===================================================================
|
|
|
9897bb |
--- acpica-unix2-20210604.orig/source/tools/acpibin/abcompare.c
|
|
|
9897bb |
+++ acpica-unix2-20210604/source/tools/acpibin/abcompare.c
|
|
|
9897bb |
@@ -42,6 +42,7 @@
|
|
|
9897bb |
*/
|
|
|
9897bb |
|
|
|
9897bb |
#include "acpibin.h"
|
|
|
9897bb |
+#include "acutils.h"
|
|
|
9897bb |
|
|
|
9897bb |
|
|
|
9897bb |
ACPI_TABLE_HEADER Header1;
|
|
|
9897bb |
@@ -179,14 +180,14 @@ AbPrintHeadersInfo (
|
|
|
9897bb |
/* Display header information for both headers */
|
|
|
9897bb |
|
|
|
9897bb |
printf ("Signature %8.4s : %4.4s\n", Header->Signature, Header2->Signature);
|
|
|
9897bb |
- printf ("Length %8.8X : %8.8X\n", Header->Length, Header2->Length);
|
|
|
9897bb |
+ printf ("Length %8.8X : %8.8X\n", AcpiUtReadUint32 (&Header->Length), AcpiUtReadUint32 (&Header2->Length));
|
|
|
9897bb |
printf ("Revision %8.2X : %2.2X\n", Header->Revision, Header2->Revision);
|
|
|
9897bb |
printf ("Checksum %8.2X : %2.2X\n", Header->Checksum, Header2->Checksum);
|
|
|
9897bb |
printf ("OEM ID %8.6s : %.6s\n", Header->OemId, Header2->OemId);
|
|
|
9897bb |
printf ("OEM Table ID %8.8s : %.8s\n", Header->OemTableId, Header2->OemTableId);
|
|
|
9897bb |
- printf ("OEM Revision %8.8X : %8.8X\n", Header->OemRevision, Header2->OemRevision);
|
|
|
9897bb |
+ printf ("OEM Revision %8.8X : %8.8X\n", AcpiUtReadUint32 (&Header->OemRevision), AcpiUtReadUint32 (&Header2->OemRevision));
|
|
|
9897bb |
printf ("ASL Compiler ID %8.4s : %.4s\n", Header->AslCompilerId, Header2->AslCompilerId);
|
|
|
9897bb |
- printf ("Compiler Revision %8.8X : %8.8X\n", Header->AslCompilerRevision, Header2->AslCompilerRevision);
|
|
|
9897bb |
+ printf ("Compiler Revision %8.8X : %8.8X\n", AcpiUtReadUint32 (&Header->AslCompilerRevision), AcpiUtReadUint32 (&Header2->AslCompilerRevision));
|
|
|
9897bb |
printf ("\n");
|
|
|
9897bb |
}
|
|
|
9897bb |
|