acpica-tools/asllookup-miscompare.patch
Al Stone d2e646292a Refresh the patches, and remove one that is no longer needed.
Signed-off-by: Al Stone <ahs3@redhat.com>
2015-10-14 15:00:20 -06:00

24 lines
1.0 KiB
Diff

Index: acpica-unix2-20150930/source/compiler/asllookup.c
===================================================================
--- acpica-unix2-20150930.orig/source/compiler/asllookup.c
+++ acpica-unix2-20150930/source/compiler/asllookup.c
@@ -119,6 +119,7 @@ LkIsObjectUsed (
{
ACPI_NAMESPACE_NODE *Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle);
ACPI_NAMESPACE_NODE *Next;
+ ACPI_NAME_UNION tmp;
ASL_METHOD_LOCAL *MethodLocals;
ASL_METHOD_LOCAL *MethodArgs;
UINT32 i;
@@ -227,8 +228,9 @@ LkIsObjectUsed (
* Issue a remark even if it is a reserved name (starts
* with an underscore).
*/
+ ACPI_MOVE_32_TO_32(&tmp.Ascii, Next->Name.Ascii);
sprintf (MsgBuffer, "Name is within method [%4.4s]",
- Next->Name.Ascii);
+ tmp.Ascii);
AslError (ASL_REMARK, ASL_MSG_NOT_REFERENCED,
LkGetNameOp (Node->Op), MsgBuffer);
return (AE_OK);