summaryrefslogtreecommitdiffstats
path: root/source/components/namespace/nsutils.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2012-10-19 18:47:57 +0000
committerjkim <jkim@FreeBSD.org>2012-10-19 18:47:57 +0000
commitd8cd02b5b5893df382c08566087e32fe5b0c3abb (patch)
tree5e268c18ae0fa3ec73e13e2af60a3be57d8393ec /source/components/namespace/nsutils.c
parentda9b951a892d96e0521abeec09d4345ddf04ab8d (diff)
downloadFreeBSD-src-d8cd02b5b5893df382c08566087e32fe5b0c3abb.zip
FreeBSD-src-d8cd02b5b5893df382c08566087e32fe5b0c3abb.tar.gz
Import ACPICA 20121018.
Diffstat (limited to 'source/components/namespace/nsutils.c')
-rw-r--r--source/components/namespace/nsutils.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/source/components/namespace/nsutils.c b/source/components/namespace/nsutils.c
index 43f734e..6370dab 100644
--- a/source/components/namespace/nsutils.c
+++ b/source/components/namespace/nsutils.c
@@ -622,7 +622,7 @@ AcpiNsExternalizeName (
((NumSegments > 0) ? (NumSegments - 1) : 0) + 1;
/*
- * Check to see if we're still in bounds. If not, there's a problem
+ * Check to see if we're still in bounds. If not, there's a problem
* with InternalName (invalid format).
*/
if (RequiredLength > InternalNameLength)
@@ -655,10 +655,13 @@ AcpiNsExternalizeName (
(*ConvertedName)[j++] = '.';
}
- (*ConvertedName)[j++] = InternalName[NamesIndex++];
- (*ConvertedName)[j++] = InternalName[NamesIndex++];
- (*ConvertedName)[j++] = InternalName[NamesIndex++];
- (*ConvertedName)[j++] = InternalName[NamesIndex++];
+ /* Copy and validate the 4-char name segment */
+
+ ACPI_MOVE_NAME (&(*ConvertedName)[j], &InternalName[NamesIndex]);
+ AcpiUtRepairName (&(*ConvertedName)[j]);
+
+ j += ACPI_NAME_SIZE;
+ NamesIndex += ACPI_NAME_SIZE;
}
}
@@ -797,7 +800,7 @@ AcpiNsOpensScope (
* \ (backslash) and ^ (carat) prefixes, and the
* . (period) to separate segments are supported.
* PrefixNode - Root of subtree to be searched, or NS_ALL for the
- * root of the name space. If Name is fully
+ * root of the name space. If Name is fully
* qualified (first INT8 is '\'), the passed value
* of Scope will not be accessed.
* Flags - Used to indicate whether to perform upsearch or
@@ -805,7 +808,7 @@ AcpiNsOpensScope (
* ReturnNode - Where the Node is returned
*
* DESCRIPTION: Look up a name relative to a given scope and return the
- * corresponding Node. NOTE: Scope can be null.
+ * corresponding Node. NOTE: Scope can be null.
*
* MUTEX: Locks namespace
*
OpenPOWER on IntegriCloud