diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2020-10-08 16:44:28 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2020-10-08 16:44:28 +0000 |
commit | e09636e66f40fad3b03a8dd4b86b1a371c435631 (patch) | |
tree | 7b65a7c39bdcce933c0b6ad825b31a72f28fd631 /source/compiler/aslxref.c | |
parent | b1dc29fa09052190e87f93cf1888edea9c42df24 (diff) |
Notes
Diffstat (limited to 'source/compiler/aslxref.c')
-rw-r--r-- | source/compiler/aslxref.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source/compiler/aslxref.c b/source/compiler/aslxref.c index 9306af200f50..163799a8beea 100644 --- a/source/compiler/aslxref.c +++ b/source/compiler/aslxref.c @@ -433,6 +433,7 @@ XfNamespaceLocateBegin ( UINT32 i; ACPI_NAMESPACE_NODE *DeclarationParentMethod; ACPI_PARSE_OBJECT *ReferenceParentMethod; + char *ExternalPath; ACPI_FUNCTION_TRACE_PTR (XfNamespaceLocateBegin, Op); @@ -1263,7 +1264,15 @@ XfNamespaceLocateBegin ( Op->Asl.Parent->Asl.ParseOpcode != PARSEOP_CONDREFOF && !XfRefIsGuardedByIfCondRefOf (Node, Op)) { - AslError (ASL_ERROR, ASL_MSG_UNDEFINED_EXTERNAL, Op, NULL); + ExternalPath = AcpiNsGetNormalizedPathname (Node, TRUE); + sprintf (AslGbl_MsgBuffer, "full path of external object: %s", + ExternalPath); + AslDualParseOpError (ASL_ERROR, ASL_MSG_UNDEFINED_EXTERNAL, Op, NULL, + ASL_MSG_EXTERNAL_FOUND_HERE, Node->Op, AslGbl_MsgBuffer); + if (ExternalPath) + { + ACPI_FREE (ExternalPath); + } } /* 5) Check for a connection object */ |