diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2002-11-27 18:07:48 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2002-11-27 18:07:48 +0000 |
commit | 10fb1b40ac2c40a3ce01db48e82a02380186cda2 (patch) | |
tree | 7e1248720e7c1c31fedb0a3ab46b79376d860c38 /sys/contrib/dev/acpica/nsutils.c | |
parent | 2897e2728d2060055931ead3c876fadfc0eb41e0 (diff) | |
parent | 2b17a8d498a3e4598c19121ab1fad3e7ced2c699 (diff) | |
download | FreeBSD-src-10fb1b40ac2c40a3ce01db48e82a02380186cda2.zip FreeBSD-src-10fb1b40ac2c40a3ce01db48e82a02380186cda2.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r107325,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'sys/contrib/dev/acpica/nsutils.c')
-rw-r--r-- | sys/contrib/dev/acpica/nsutils.c | 51 |
1 files changed, 8 insertions, 43 deletions
diff --git a/sys/contrib/dev/acpica/nsutils.c b/sys/contrib/dev/acpica/nsutils.c index 6e87aba..69ed423 100644 --- a/sys/contrib/dev/acpica/nsutils.c +++ b/sys/contrib/dev/acpica/nsutils.c @@ -2,7 +2,7 @@ * * Module Name: nsutils - Utilities for accessing ACPI namespace, accessing * parents and siblings and Scope manipulation - * $Revision: 113 $ + * $Revision: 116 $ * *****************************************************************************/ @@ -137,7 +137,7 @@ * * RETURN: None * - * DESCRIPTION: Print warning message + * DESCRIPTION: Print warning message with full pathname * ******************************************************************************/ @@ -153,12 +153,16 @@ AcpiNsReportError ( char *Name; + /* Convert path to external format */ + Status = AcpiNsExternalizeName (ACPI_UINT32_MAX, InternalName, NULL, &Name); AcpiOsPrintf ("%8s-%04d: *** Error: Looking up ", ModuleName, LineNumber); - if (Name) + /* Print target name */ + + if (ACPI_SUCCESS (Status)) { AcpiOsPrintf ("[%s]", Name); } @@ -889,7 +893,7 @@ UINT32 AcpiNsOpensScope ( ACPI_OBJECT_TYPE Type) { - ACPI_FUNCTION_TRACE_U32 ("NsOpensScope", Type); + ACPI_FUNCTION_TRACE_STR ("NsOpensScope", AcpiUtGetTypeName (Type)); if (!AcpiUtValidObjectType (Type)) @@ -1035,45 +1039,6 @@ AcpiNsFindParentName ( } -#if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) - -/******************************************************************************* - * - * FUNCTION: AcpiNsExistDownstreamSibling - * - * PARAMETERS: *Node - pointer to first Node to examine - * - * RETURN: TRUE if sibling is found, FALSE otherwise - * - * DESCRIPTION: Searches remainder of scope being processed to determine - * whether there is a downstream sibling to the current - * object. This function is used to determine what type of - * line drawing character to use when displaying namespace - * trees. - * - ******************************************************************************/ - -BOOLEAN -AcpiNsExistDownstreamSibling ( - ACPI_NAMESPACE_NODE *Node) -{ - - if (!Node) - { - return (FALSE); - } - - if (Node->Name.Integer) - { - return (TRUE); - } - - return (FALSE); -} - -#endif /* ACPI_DEBUG_OUTPUT */ - - /******************************************************************************* * * FUNCTION: AcpiNsGetParentNode |