Skip to content

Commit

Permalink
Namespace: Update/fix an error message
Browse files Browse the repository at this point in the history
Was emitting an internal namestring without converting it to
the external format.
  • Loading branch information
acpibob committed Jul 11, 2017
1 parent 167e48f commit 8b7fa97
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions source/components/namespace/nsaccess.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 8b7fa97

Please sign in to comment.