Added parent node to all Field object descriptors for better debug

output.  (Does not increase the size of these objects because there was extra
room.)


date	2001.10.29.22.07.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 18:22:54 +00:00
parent 772ad18399
commit 7edab0bc0a

View File

@ -1,7 +1,7 @@
/****************************************************************************** /******************************************************************************
* *
* Module Name: nsdump - table dumping routines for debug * Module Name: nsdump - table dumping routines for debug
* $Revision: 1.108 $ * $Revision: 1.109 $
* *
*****************************************************************************/ *****************************************************************************/
@ -127,7 +127,6 @@
#define _COMPONENT ACPI_NAMESPACE #define _COMPONENT ACPI_NAMESPACE
MODULE_NAME ("nsdump") MODULE_NAME ("nsdump")
#if defined(ACPI_DEBUG) || defined(ENABLE_DEBUGGER) #if defined(ACPI_DEBUG) || defined(ENABLE_DEBUGGER)
/******************************************************************************* /*******************************************************************************
@ -251,12 +250,10 @@ AcpiNsDumpOneObject (
return (AE_OK); return (AE_OK);
} }
/* Indent the object according to the level */ /* Indent the object according to the level */
while (LevelTmp--) while (LevelTmp--)
{ {
/* Print appropriate characters to form tree structure */ /* Print appropriate characters to form tree structure */
if (LevelTmp) if (LevelTmp)
@ -272,7 +269,6 @@ AcpiNsDumpOneObject (
WhichBit <<= 1; WhichBit <<= 1;
} }
else else
{ {
if (AcpiNsExistDownstreamSibling (ThisNode + 1)) if (AcpiNsExistDownstreamSibling (ThisNode + 1))
@ -301,7 +297,6 @@ AcpiNsDumpOneObject (
} }
} }
/* Check the integrity of our data */ /* Check the integrity of our data */
if (Type > INTERNAL_TYPE_MAX) if (Type > INTERNAL_TYPE_MAX)
@ -413,8 +408,8 @@ AcpiNsDumpOneObject (
break; break;
case ACPI_TYPE_BUFFER_FIELD: case ACPI_TYPE_BUFFER_FIELD:
AcpiOsPrintf (" Buf [%4.4s]",
/* TBD: print Buffer name when we can easily get it */ (char *) &ObjDesc->CommonField.Node->Name);
break; break;
case INTERNAL_TYPE_REGION_FIELD: case INTERNAL_TYPE_REGION_FIELD:
@ -423,17 +418,18 @@ AcpiNsDumpOneObject (
break; break;
case INTERNAL_TYPE_BANK_FIELD: case INTERNAL_TYPE_BANK_FIELD:
AcpiOsPrintf (" Rgn [%4.4s]", AcpiOsPrintf (" Rgn [%4.4s] Bnk [%4.4s]",
(char *) &ObjDesc->CommonField.RegionObj->Region.Node->Name); (char *) &ObjDesc->CommonField.RegionObj->Region.Node->Name,
(char *) &ObjDesc->BankField.BankRegisterObj->CommonField.Node->Name);
break; break;
case INTERNAL_TYPE_INDEX_FIELD: case INTERNAL_TYPE_INDEX_FIELD:
AcpiOsPrintf (" Rgn [%4.4s]", AcpiOsPrintf (" Idx [%4.4s] Dat [%4.4s]",
(char *) &ObjDesc->IndexField.IndexObj->CommonField.RegionObj->Region.Node->Name); (char *) &ObjDesc->IndexField.IndexObj->CommonField.Node->Name,
(char *) &ObjDesc->IndexField.DataObj->CommonField.Node->Name);
break; break;
default: default:
AcpiOsPrintf (" Object %p\n", ObjDesc); AcpiOsPrintf (" Object %p\n", ObjDesc);
break; break;
} }