diff options
author | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 2002-10-04 20:07:58 +0000 |
---|---|---|
committer | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 2002-10-04 20:07:58 +0000 |
commit | 07a5b5c0b66337aa6ba31dce1d71807775b8afd8 (patch) | |
tree | 95e2e8a70dc361cf34d6a4c080313e68541ea4aa /sys/contrib/dev/acpica/nsutils.c | |
parent | 2d12e67c7d90c89aa46f4cc44162250734689058 (diff) | |
download | src-07a5b5c0b66337aa6ba31dce1d71807775b8afd8.tar.gz src-07a5b5c0b66337aa6ba31dce1d71807775b8afd8.zip |
Vendor import of the Intel ACPI CA 20021002 drop.
Notes
Notes:
svn path=/vendor-sys/acpica/dist/; revision=104470
Diffstat (limited to 'sys/contrib/dev/acpica/nsutils.c')
-rw-r--r-- | sys/contrib/dev/acpica/nsutils.c | 53 |
1 files changed, 52 insertions, 1 deletions
diff --git a/sys/contrib/dev/acpica/nsutils.c b/sys/contrib/dev/acpica/nsutils.c index a786de70c8f9..6e87abad3d52 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: 112 $ + * $Revision: 113 $ * *****************************************************************************/ @@ -128,6 +128,57 @@ /******************************************************************************* * + * FUNCTION: AcpiNsReportError + * + * PARAMETERS: ModuleName - Caller's module name (for error output) + * LineNumber - Caller's line number (for error output) + * ComponentId - Caller's component ID (for error output) + * Message - Error message to use on failure + * + * RETURN: None + * + * DESCRIPTION: Print warning message + * + ******************************************************************************/ + +void +AcpiNsReportError ( + NATIVE_CHAR *ModuleName, + UINT32 LineNumber, + UINT32 ComponentId, + char *InternalName, + ACPI_STATUS LookupStatus) +{ + ACPI_STATUS Status; + char *Name; + + + Status = AcpiNsExternalizeName (ACPI_UINT32_MAX, InternalName, NULL, &Name); + + AcpiOsPrintf ("%8s-%04d: *** Error: Looking up ", + ModuleName, LineNumber); + + if (Name) + { + AcpiOsPrintf ("[%s]", Name); + } + else + { + AcpiOsPrintf ("[COULD NOT EXTERNALIZE NAME]"); + } + + AcpiOsPrintf (" in namespace, %s\n", + AcpiFormatException (LookupStatus)); + + if (Name) + { + ACPI_MEM_FREE (Name); + } +} + + +/******************************************************************************* + * * FUNCTION: AcpiNsValidRootPrefix * * PARAMETERS: Prefix - Character to be checked |