summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica/dbcmds.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2003-12-09 02:45:16 +0000
committernjl <njl@FreeBSD.org>2003-12-09 02:45:16 +0000
commit2a9caa496cc3521e5c9352c255b827c90efb3839 (patch)
tree24e5ad5d8b4fb5681ddaa34c6ae30814c80ffe56 /sys/contrib/dev/acpica/dbcmds.c
parentdc49a5b908c59c6ae7c8b069908225dd6c21c041 (diff)
downloadFreeBSD-src-2a9caa496cc3521e5c9352c255b827c90efb3839.zip
FreeBSD-src-2a9caa496cc3521e5c9352c255b827c90efb3839.tar.gz
Import ACPI-CA 20031203
Diffstat (limited to 'sys/contrib/dev/acpica/dbcmds.c')
-rw-r--r--sys/contrib/dev/acpica/dbcmds.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/sys/contrib/dev/acpica/dbcmds.c b/sys/contrib/dev/acpica/dbcmds.c
index 6ac31de..3e72daf 100644
--- a/sys/contrib/dev/acpica/dbcmds.c
+++ b/sys/contrib/dev/acpica/dbcmds.c
@@ -1,7 +1,7 @@
/*******************************************************************************
*
* Module Name: dbcmds - debug commands and output routines
- * $Revision: 105 $
+ * $Revision: 109 $
*
******************************************************************************/
@@ -187,14 +187,16 @@ AcpiDbWalkForReferences (
if (Node == (void *) ObjDesc)
{
- AcpiOsPrintf ("Object is a Node [%4.4s]\n", Node->Name.Ascii);
+ AcpiOsPrintf ("Object is a Node [%4.4s]\n",
+ AcpiUtGetNodeName (Node));
}
/* Check for match against the object attached to the node */
if (AcpiNsGetAttachedObject (Node) == ObjDesc)
{
- AcpiOsPrintf ("Reference at Node->Object %p [%4.4s]\n", Node, Node->Name.Ascii);
+ AcpiOsPrintf ("Reference at Node->Object %p [%4.4s]\n",
+ Node, AcpiUtGetNodeName (Node));
}
return (AE_OK);
@@ -506,7 +508,8 @@ AcpiDbDumpNamespace (
if (ACPI_GET_DESCRIPTOR_TYPE (SubtreeEntry) != ACPI_DESC_TYPE_NAMED)
{
- AcpiOsPrintf ("Address %p is not a valid Named object\n", SubtreeEntry);
+ AcpiOsPrintf ("Address %p is not a valid NS node [%s]\n",
+ SubtreeEntry, AcpiUtGetDescriptorName (SubtreeEntry));
return;
}
}
@@ -807,8 +810,7 @@ AcpiDbWalkForSpecificObjects (
case ACPI_TYPE_INTEGER:
AcpiOsPrintf (" Value %8.8X%8.8X",
- ACPI_HIDWORD (ObjDesc->Integer.Value),
- ACPI_LODWORD (ObjDesc->Integer.Value));
+ ACPI_FORMAT_UINT64 (ObjDesc->Integer.Value));
break;
case ACPI_TYPE_STRING:
@@ -819,8 +821,7 @@ AcpiDbWalkForSpecificObjects (
AcpiOsPrintf (" SpaceId %X Length %X Address %8.8X%8.8X",
ObjDesc->Region.SpaceId,
ObjDesc->Region.Length,
- ACPI_HIDWORD (ObjDesc->Region.Address),
- ACPI_LODWORD (ObjDesc->Region.Address));
+ ACPI_FORMAT_UINT64 (ObjDesc->Region.Address));
break;
case ACPI_TYPE_PACKAGE:
@@ -1208,8 +1209,8 @@ AcpiDbIntegrityWalk (
Info->Nodes++;
if (ACPI_GET_DESCRIPTOR_TYPE (Node) != ACPI_DESC_TYPE_NAMED)
{
- AcpiOsPrintf ("Invalid Descriptor Type for Node %p, Type = %X\n",
- Node, ACPI_GET_DESCRIPTOR_TYPE (Node));
+ AcpiOsPrintf ("Invalid Descriptor Type for Node %p [%s]\n",
+ Node, AcpiUtGetDescriptorName (Node));
}
if (Node->Type > ACPI_TYPE_LOCAL_MAX)
@@ -1229,8 +1230,8 @@ AcpiDbIntegrityWalk (
Info->Objects++;
if (ACPI_GET_DESCRIPTOR_TYPE (Object) != ACPI_DESC_TYPE_OPERAND)
{
- AcpiOsPrintf ("Invalid Descriptor Type for Object %p, Type = %X\n",
- Object, ACPI_GET_DESCRIPTOR_TYPE (Object));
+ AcpiOsPrintf ("Invalid Descriptor Type for Object %p [%s]\n",
+ Object, AcpiUtGetDescriptorName (Object));
}
}
@@ -1290,7 +1291,7 @@ AcpiDbGenerateGpe (
BlockNumber = ACPI_STRTOUL (BlockArg, NULL, 0);
- GpeEventInfo = AcpiEvGetGpeEventInfo ((void *) BlockNumber, GpeNumber);
+ GpeEventInfo = AcpiEvGetGpeEventInfo (ACPI_TO_POINTER (BlockNumber), GpeNumber);
if (!GpeEventInfo)
{
AcpiOsPrintf ("Invalid GPE\n");
OpenPOWER on IntegriCloud