acpica-tools/utstring.patch
Al Stone a3576b784d Correct an ARMv7 patch
Signed-off-by: Al Stone <ahs3@redhat.com>
2020-02-25 11:56:15 -07:00

29 lines
1.1 KiB
Diff

diff -Naur acpica-unix2-20200214.orig/source/components/utilities/utstring.c acpica-unix2-20200214/source/components/utilities/utstring.c
--- acpica-unix2-20200214.orig/source/components/utilities/utstring.c 2020-02-14 10:33:55.000000000 -0700
+++ acpica-unix2-20200214/source/components/utilities/utstring.c 2020-02-25 11:21:31.329016004 -0700
@@ -185,7 +185,7 @@
{
UINT32 i;
BOOLEAN FoundBadChar = FALSE;
- UINT32 OriginalName;
+ char OriginalName[ACPI_NAMESEG+SIZE+1];
ACPI_FUNCTION_NAME (UtRepairName);
@@ -228,13 +228,13 @@
{
ACPI_WARNING ((AE_INFO,
"Invalid character(s) in name (0x%.8X), repaired: [%4.4s]",
- OriginalName, Name));
+ (unsigned int)OriginalName, Name));
}
else
{
ACPI_DEBUG_PRINT ((ACPI_DB_INFO,
"Invalid character(s) in name (0x%.8X), repaired: [%4.4s]",
- OriginalName, Name));
+ (unsigned int)OriginalName, Name));
}
}
}