File: asllookup-miscompare.patch

package info (click to toggle)
acpica-unix 20160831-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 30,128 kB
  • sloc: ansic: 117,969; sh: 4,078; yacc: 3,709; makefile: 1,323; lex: 1,118
file content (24 lines) | stat: -rw-r--r-- 1,154 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Index: acpica-unix-20160527/source/compiler/asllookup.c
===================================================================
--- acpica-unix-20160527.orig/source/compiler/asllookup.c
+++ acpica-unix-20160527/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, tmp2;
     ASL_METHOD_LOCAL        *MethodLocals;
     ASL_METHOD_LOCAL        *MethodArgs;
     UINT32                  i;
@@ -228,8 +229,10 @@ LkIsObjectUsed (
              * Issue a remark even if it is a reserved name (starts
              * with an underscore).
              */
+            ACPI_MOVE_32_TO_32(&tmp.Ascii, Node->Name.Ascii);
+            ACPI_MOVE_32_TO_32(&tmp2.Ascii, Next->Name.Ascii);
             sprintf (MsgBuffer, "Name [%4.4s] is within a method [%4.4s]",
-                Node->Name.Ascii, Next->Name.Ascii);
+                tmp.Ascii, tmp2.Ascii);
             AslError (ASL_REMARK, ASL_MSG_NOT_REFERENCED,
                 LkGetNameOp (Node->Op), MsgBuffer);
             return (AE_OK);