summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica/nsdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/dev/acpica/nsdump.c')
-rw-r--r--sys/contrib/dev/acpica/nsdump.c41
1 files changed, 19 insertions, 22 deletions
diff --git a/sys/contrib/dev/acpica/nsdump.c b/sys/contrib/dev/acpica/nsdump.c
index 085565d..a71b913 100644
--- a/sys/contrib/dev/acpica/nsdump.c
+++ b/sys/contrib/dev/acpica/nsdump.c
@@ -1,7 +1,7 @@
/******************************************************************************
*
* Module Name: nsdump - table dumping routines for debug
- * $Revision: 151 $
+ * $Revision: 156 $
*
*****************************************************************************/
@@ -125,8 +125,8 @@
#define _COMPONENT ACPI_NAMESPACE
ACPI_MODULE_NAME ("nsdump")
-#if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
+#if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
/*******************************************************************************
*
@@ -152,7 +152,7 @@ AcpiNsPrintPathname (
return;
}
- /* Print the entire name */
+ /* Print the entire name */
ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "["));
@@ -289,7 +289,7 @@ AcpiNsDumpOneObject (
* Now we can print out the pertinent information
*/
AcpiOsPrintf ("%4.4s %-12s %p ",
- ThisNode->Name.Ascii, AcpiUtGetTypeName (Type), ThisNode);
+ AcpiUtGetNodeName (ThisNode), AcpiUtGetTypeName (Type), ThisNode);
DbgLevel = AcpiDbgLevel;
AcpiDbgLevel = 0;
@@ -321,7 +321,7 @@ AcpiNsDumpOneObject (
case ACPI_TYPE_DEVICE:
- AcpiOsPrintf ("Notify object: %p", ObjDesc);
+ AcpiOsPrintf ("Notify Object: %p\n", ObjDesc);
break;
@@ -337,8 +337,7 @@ AcpiNsDumpOneObject (
case ACPI_TYPE_INTEGER:
AcpiOsPrintf ("= %8.8X%8.8X\n",
- ACPI_HIDWORD (ObjDesc->Integer.Value),
- ACPI_LODWORD (ObjDesc->Integer.Value));
+ ACPI_FORMAT_UINT64 (ObjDesc->Integer.Value));
break;
@@ -396,8 +395,7 @@ AcpiNsDumpOneObject (
if (ObjDesc->Region.Flags & AOPOBJ_DATA_VALID)
{
AcpiOsPrintf (" Addr %8.8X%8.8X Len %.4X\n",
- ACPI_HIDWORD (ObjDesc->Region.Address),
- ACPI_LODWORD (ObjDesc->Region.Address),
+ ACPI_FORMAT_UINT64 (ObjDesc->Region.Address),
ObjDesc->Region.Length);
}
else
@@ -420,7 +418,7 @@ AcpiNsDumpOneObject (
ObjDesc->BufferField.BufferObj->Buffer.Node)
{
AcpiOsPrintf ("Buf [%4.4s]",
- ObjDesc->BufferField.BufferObj->Buffer.Node->Name.Ascii);
+ AcpiUtGetNodeName (ObjDesc->BufferField.BufferObj->Buffer.Node));
}
break;
@@ -428,29 +426,29 @@ AcpiNsDumpOneObject (
case ACPI_TYPE_LOCAL_REGION_FIELD:
AcpiOsPrintf ("Rgn [%4.4s]",
- ObjDesc->CommonField.RegionObj->Region.Node->Name.Ascii);
+ AcpiUtGetNodeName (ObjDesc->CommonField.RegionObj->Region.Node));
break;
case ACPI_TYPE_LOCAL_BANK_FIELD:
AcpiOsPrintf ("Rgn [%4.4s] Bnk [%4.4s]",
- ObjDesc->CommonField.RegionObj->Region.Node->Name.Ascii,
- ObjDesc->BankField.BankObj->CommonField.Node->Name.Ascii);
+ AcpiUtGetNodeName (ObjDesc->CommonField.RegionObj->Region.Node),
+ AcpiUtGetNodeName (ObjDesc->BankField.BankObj->CommonField.Node));
break;
case ACPI_TYPE_LOCAL_INDEX_FIELD:
AcpiOsPrintf ("Idx [%4.4s] Dat [%4.4s]",
- ObjDesc->IndexField.IndexObj->CommonField.Node->Name.Ascii,
- ObjDesc->IndexField.DataObj->CommonField.Node->Name.Ascii);
+ AcpiUtGetNodeName (ObjDesc->IndexField.IndexObj->CommonField.Node),
+ AcpiUtGetNodeName (ObjDesc->IndexField.DataObj->CommonField.Node));
break;
case ACPI_TYPE_LOCAL_ALIAS:
- AcpiOsPrintf ("Target %4.4s (%p)\n", ((ACPI_NAMESPACE_NODE *) ObjDesc)->Name.Ascii, ObjDesc);
+ AcpiOsPrintf ("Target %4.4s (%p)\n", AcpiUtGetNodeName (ObjDesc), ObjDesc);
break;
default:
@@ -468,7 +466,7 @@ AcpiNsDumpOneObject (
case ACPI_TYPE_LOCAL_BANK_FIELD:
case ACPI_TYPE_LOCAL_INDEX_FIELD:
- AcpiOsPrintf (" Off %.2X Len %.2X Acc %.2hd\n",
+ AcpiOsPrintf (" Off %.3X Len %.2X Acc %.2hd\n",
(ObjDesc->CommonField.BaseByteOffset * 8)
+ ObjDesc->CommonField.StartFieldBitOffset,
ObjDesc->CommonField.BitLength,
@@ -507,8 +505,8 @@ AcpiNsDumpOneObject (
case ACPI_TYPE_INTEGER:
- AcpiOsPrintf (" N:%X%X\n", ACPI_HIDWORD(ObjDesc->Integer.Value),
- ACPI_LODWORD(ObjDesc->Integer.Value));
+ AcpiOsPrintf (" I:%8.8X8.8%X\n",
+ ACPI_FORMAT_UINT64 (ObjDesc->Integer.Value));
break;
case ACPI_TYPE_STRING:
@@ -589,7 +587,8 @@ AcpiNsDumpOneObject (
default:
- AcpiOsPrintf ("(String or Buffer ptr - not an object descriptor)\n");
+ AcpiOsPrintf ("(String or Buffer ptr - not an object descriptor) [%s]\n",
+ AcpiUtGetDescriptorName (ObjDesc));
BytesToDump = 16;
break;
}
@@ -687,7 +686,6 @@ AcpiNsDumpObjects (
Info.OwnerId = OwnerId;
Info.DisplayType = DisplayType;
-
(void) AcpiNsWalkNamespace (Type, StartHandle, MaxDepth,
ACPI_NS_WALK_NO_UNLOCK, AcpiNsDumpOneObject,
(void *) &Info, NULL);
@@ -736,7 +734,6 @@ AcpiNsDumpTables (
ACPI_DEBUG_PRINT ((ACPI_DB_TABLES, "\\\n"));
}
-
AcpiNsDumpObjects (ACPI_TYPE_ANY, ACPI_DISPLAY_OBJECTS, MaxDepth,
ACPI_UINT32_MAX, SearchHandle);
return_VOID;
OpenPOWER on IntegriCloud