diff options
Diffstat (limited to 'drivers/acpi/namespace/nsdump.c')
-rw-r--r-- | drivers/acpi/namespace/nsdump.c | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/drivers/acpi/namespace/nsdump.c b/drivers/acpi/namespace/nsdump.c index 05af95322a62..c9f35dd7a431 100644 --- a/drivers/acpi/namespace/nsdump.c +++ b/drivers/acpi/namespace/nsdump.c | |||
@@ -208,33 +208,37 @@ acpi_ns_dump_one_object ( | |||
208 | return (AE_OK); | 208 | return (AE_OK); |
209 | } | 209 | } |
210 | 210 | ||
211 | /* Indent the object according to the level */ | 211 | if (!(info->display_type & ACPI_DISPLAY_SHORT)) { |
212 | /* Indent the object according to the level */ | ||
212 | 213 | ||
213 | acpi_os_printf ("%2d%*s", (u32) level - 1, (int) level * 2, " "); | 214 | acpi_os_printf ("%2d%*s", (u32) level - 1, (int) level * 2, " "); |
214 | 215 | ||
215 | /* Check the node type and name */ | 216 | /* Check the node type and name */ |
216 | 217 | ||
217 | if (type > ACPI_TYPE_LOCAL_MAX) { | 218 | if (type > ACPI_TYPE_LOCAL_MAX) { |
218 | ACPI_REPORT_WARNING (("Invalid ACPI Type %08X\n", type)); | 219 | ACPI_REPORT_WARNING (("Invalid ACPI Type %08X\n", type)); |
219 | } | 220 | } |
221 | |||
222 | if (!acpi_ut_valid_acpi_name (this_node->name.integer)) { | ||
223 | ACPI_REPORT_WARNING (("Invalid ACPI Name %08X\n", | ||
224 | this_node->name.integer)); | ||
225 | } | ||
220 | 226 | ||
221 | if (!acpi_ut_valid_acpi_name (this_node->name.integer)) { | 227 | acpi_os_printf ("%4.4s", acpi_ut_get_node_name (this_node)); |
222 | ACPI_REPORT_WARNING (("Invalid ACPI Name %08X\n", | ||
223 | this_node->name.integer)); | ||
224 | } | 228 | } |
225 | 229 | ||
226 | /* | 230 | /* |
227 | * Now we can print out the pertinent information | 231 | * Now we can print out the pertinent information |
228 | */ | 232 | */ |
229 | acpi_os_printf ("%4.4s %-12s %p ", | 233 | acpi_os_printf (" %-12s %p ", |
230 | acpi_ut_get_node_name (this_node), acpi_ut_get_type_name (type), this_node); | 234 | acpi_ut_get_type_name (type), this_node); |
231 | 235 | ||
232 | dbg_level = acpi_dbg_level; | 236 | dbg_level = acpi_dbg_level; |
233 | acpi_dbg_level = 0; | 237 | acpi_dbg_level = 0; |
234 | obj_desc = acpi_ns_get_attached_object (this_node); | 238 | obj_desc = acpi_ns_get_attached_object (this_node); |
235 | acpi_dbg_level = dbg_level; | 239 | acpi_dbg_level = dbg_level; |
236 | 240 | ||
237 | switch (info->display_type) { | 241 | switch (info->display_type & ACPI_DISPLAY_MASK) { |
238 | case ACPI_DISPLAY_SUMMARY: | 242 | case ACPI_DISPLAY_SUMMARY: |
239 | 243 | ||
240 | if (!obj_desc) { | 244 | if (!obj_desc) { |
@@ -646,7 +650,7 @@ acpi_ns_dump_entry ( | |||
646 | } | 650 | } |
647 | 651 | ||
648 | 652 | ||
649 | #ifdef _ACPI_ASL_COMPILER | 653 | #ifdef ACPI_ASL_COMPILER |
650 | /******************************************************************************* | 654 | /******************************************************************************* |
651 | * | 655 | * |
652 | * FUNCTION: acpi_ns_dump_tables | 656 | * FUNCTION: acpi_ns_dump_tables |