acpica-tools/ull-32bit.patch
Al Stone 7ae04aaa72 Use %autopatch in the spec file
Signed-off-by: Al Stone <ahs3@redhat.com>
2020-10-29 10:46:20 -06:00

16 lines
662 B
Diff

diff -Naur acpica-unix2-20200925.orig/source/common/dmtbdump.c acpica-unix2-20200925/source/common/dmtbdump.c
--- acpica-unix2-20200925.orig/source/common/dmtbdump.c 2020-10-27 08:50:34.949398104 -0500
+++ acpica-unix2-20200925/source/common/dmtbdump.c 2020-10-27 08:54:27.609955141 -0500
@@ -333,7 +333,11 @@
for (i = 0; i < Entries; i++)
{
AcpiDmLineHeader2 (Offset, sizeof (UINT64), "ACPI Table Address", i);
+#if ACPI_MACHINE_WIDTH == 32
+ AcpiOsPrintf ("%16.16llX\n", AcpiUtReadUint64(&Array[i]));
+#else
AcpiOsPrintf ("%16.16lX\n", AcpiUtReadUint64(&Array[i]));
+#endif
Offset += sizeof (UINT64);
}
}