From b78306d11e38de528afcffc43df9567c1921f2c4 Mon Sep 17 00:00:00 2001 From: aystarik Date: Wed, 29 Jun 2005 18:21:54 +0000 Subject: [PATCH] Better output for table dump date 2000.01.27.22.17.00; author rmoore1; state Exp; --- source/components/namespace/nsdump.c | 45 +++++++++++++++++++++++----- 1 file changed, 37 insertions(+), 8 deletions(-) diff --git a/source/components/namespace/nsdump.c b/source/components/namespace/nsdump.c index 7bf0f3538..0033a00a2 100644 --- a/source/components/namespace/nsdump.c +++ b/source/components/namespace/nsdump.c @@ -324,24 +324,49 @@ NsDumpOneObject ( return AE_OK; } - if (ACPI_TYPE_Method == Type) + switch (Type) { + + case ACPI_TYPE_Method: + /* Name is a Method and its AML offset/length are set */ DEBUG_PRINT_RAW (TRACE_TABLES, (" M:%p-%X\n", ((ACPI_OBJECT_INTERNAL *) ThisEntry->Object)->Method.Pcode, ((ACPI_OBJECT_INTERNAL *) ThisEntry->Object)->Method.PcodeLength)); - } - else - { + break; + + + case ACPI_TYPE_Number: + + DEBUG_PRINT_RAW (TRACE_TABLES, (" N:%X\n", + ((ACPI_OBJECT_INTERNAL *) ThisEntry->Object)->Number.Value)); + break; + + + case ACPI_TYPE_String: + + DEBUG_PRINT_RAW (TRACE_TABLES, (" S:%p-%X\n", + ((ACPI_OBJECT_INTERNAL *) ThisEntry->Object)->String.Pointer, + ((ACPI_OBJECT_INTERNAL *) ThisEntry->Object)->String.Length)); + break; + + + case ACPI_TYPE_Buffer: + + DEBUG_PRINT_RAW (TRACE_TABLES, (" B:%p-%X\n", + ((ACPI_OBJECT_INTERNAL *) ThisEntry->Object)->Buffer.Pointer, + ((ACPI_OBJECT_INTERNAL *) ThisEntry->Object)->Buffer.Length)); + break; + + + default: + DEBUG_PRINT_RAW (TRACE_TABLES, ("\n")); + break; } - /* There is an attached object, display it */ - - Value = ThisEntry->Object; - /* If debug turned off, done */ if (!(DebugLevel & TRACE_VALUES)) @@ -350,6 +375,10 @@ NsDumpOneObject ( } + /* If there is an attached object, display it */ + + Value = ThisEntry->Object; + /* Dump attached objects */ while (Value)