diff options
author | Nate Lawson <njl@FreeBSD.org> | 2003-12-09 02:45:16 +0000 |
---|---|---|
committer | Nate Lawson <njl@FreeBSD.org> | 2003-12-09 02:45:16 +0000 |
commit | e50beb517da1c050acb9fb2b9751bcd9651df1a1 (patch) | |
tree | 24e5ad5d8b4fb5681ddaa34c6ae30814c80ffe56 /sys/contrib/dev/acpica/dbcmds.c | |
parent | 4f023945aca7d5e935e9d22b62c9b02de662d383 (diff) |
Import ACPI-CA 20031203
Notes
Notes:
svn path=/vendor-sys/acpica/dist/; revision=123315
Diffstat (limited to 'sys/contrib/dev/acpica/dbcmds.c')
-rw-r--r-- | sys/contrib/dev/acpica/dbcmds.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/sys/contrib/dev/acpica/dbcmds.c b/sys/contrib/dev/acpica/dbcmds.c index 6ac31de22fdf..3e72daf3e730 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"); |