summaryrefslogtreecommitdiff
path: root/source/components/namespace/nsaccess.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2017-07-28 17:44:36 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2017-07-28 17:44:36 +0000
commit834d4c5613e9c57c0b9fba46fa717fd7fb9d5891 (patch)
tree610a3598ffcd1fdcb97c475a59bccac84f41bbdd /source/components/namespace/nsaccess.c
parent744d47ba98ced2e2a7d3aff2f894136544386e34 (diff)
Notes
Diffstat (limited to 'source/components/namespace/nsaccess.c')
-rw-r--r--source/components/namespace/nsaccess.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/source/components/namespace/nsaccess.c b/source/components/namespace/nsaccess.c
index 89d766b4bdd3..0ae1fbdd0875 100644
--- a/source/components/namespace/nsaccess.c
+++ b/source/components/namespace/nsaccess.c
@@ -410,6 +410,7 @@ AcpiNsLookup (
{
ACPI_STATUS Status;
char *Path = Pathname;
+ char *ExternalPath;
ACPI_NAMESPACE_NODE *PrefixNode;
ACPI_NAMESPACE_NODE *CurrentNode = NULL;
ACPI_NAMESPACE_NODE *ThisNode = NULL;
@@ -556,11 +557,21 @@ AcpiNsLookup (
ThisNode = ThisNode->Parent;
if (!ThisNode)
{
- /* Current scope has no parent scope */
+ /*
+ * Current scope has no parent scope. Externalize
+ * the internal path for error message.
+ */
+ Status = AcpiNsExternalizeName (ACPI_UINT32_MAX, Pathname,
+ NULL, &ExternalPath);
+ if (ACPI_SUCCESS (Status))
+ {
+ ACPI_ERROR ((AE_INFO,
+ "%s: Path has too many parent prefixes (^)",
+ ExternalPath));
+
+ ACPI_FREE (ExternalPath);
+ }
- ACPI_ERROR ((AE_INFO,
- "%s: Path has too many parent prefixes (^) "
- "- reached beyond root node", Pathname));
return_ACPI_STATUS (AE_NOT_FOUND);
}
}