From: Al Stone <ahs3 at redhat.com>
To: devel@acpica.org
Subject: [Devel] [PATCH] minor correction for big endian machines
Date: Fri, 28 Feb 2014 09:05:31 -0700 [thread overview]
Message-ID: <5310B3CB.8060906@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1510 bytes --]
When using the ASL files in the misc tests directory, I found a
case where a warning message printed out the table signature in
the wrong order on big endian machines. The patch below fixes
the message so it works on little- or big-endian.
Signed-off-by: Al Stone <ahs3(a)redhat.com>
diff -urN acpica-unix2-20140214/source/compiler/asllookup.c
acpica-unix2-20140214-patch/source/compiler/asllookup.c
--- acpica-unix2-20140214/source/compiler/asllookup.c 2014-02-14
16:23:33.000000000 -0700
+++ acpica-unix2-20140214-patch/source/compiler/asllookup.c 2014-02-27
11:50:52.168659866 -0700
@@ -120,6 +120,7 @@
{
ACPI_NAMESPACE_NODE *Node = ACPI_CAST_PTR
(ACPI_NAMESPACE_NODE, ObjHandle);
ACPI_NAMESPACE_NODE *Next;
+ ACPI_NAME_UNION tmp;
/* Referenced flag is set during the namespace xref */
@@ -163,8 +164,9 @@
* 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);
--
ciao,
al
-----------------------------------
Al Stone
Software Engineer
Red Hat, Inc.
ahs3(a)redhat.com
-----------------------------------
reply other threads:[~2014-02-28 16:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5310B3CB.8060906@redhat.com \
--to=devel@acpica.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.