diff options
Diffstat (limited to 'sys/contrib/dev/acpica/nsnames.c')
-rw-r--r-- | sys/contrib/dev/acpica/nsnames.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sys/contrib/dev/acpica/nsnames.c b/sys/contrib/dev/acpica/nsnames.c index 795c811d8ede0..5990ff5ab3c83 100644 --- a/sys/contrib/dev/acpica/nsnames.c +++ b/sys/contrib/dev/acpica/nsnames.c @@ -1,7 +1,7 @@ /******************************************************************************* * * Module Name: nsnames - Name manipulation and search - * $Revision: 49 $ + * $Revision: 51 $ * ******************************************************************************/ @@ -210,7 +210,7 @@ AcpiNsGetTablePathname ( if (Size != 0) { DEBUG_PRINT (ACPI_ERROR, - ("NsGetTablePathname: Bad pointer returned; size = %d\n", Size)); + ("NsGetTablePathname: Bad pointer returned; size=%X\n", Size)); } return_PTR (NameBuffer); @@ -278,6 +278,13 @@ AcpiNsHandleToPathname ( Size += PATH_SEGMENT_LENGTH; } + /* Special case for size still 0 - no parent for "special" nodes */ + + if (!Size) + { + Size = PATH_SEGMENT_LENGTH; + } + /* Set return length to the required path length */ PathLength = Size + 1; @@ -324,7 +331,7 @@ AcpiNsHandleToPathname ( UserBuffer[Size] = '\\'; DEBUG_PRINT (TRACE_EXEC, - ("NsHandleToPathname: Len=%d, %s \n", + ("NsHandleToPathname: Len=%X, %s \n", PathLength, UserBuffer)); Exit: |