diff options
Diffstat (limited to 'drivers/acpi/namespace/nsdump.c')
| -rw-r--r-- | drivers/acpi/namespace/nsdump.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/acpi/namespace/nsdump.c b/drivers/acpi/namespace/nsdump.c index a2807317a84b..d72df66aa965 100644 --- a/drivers/acpi/namespace/nsdump.c +++ b/drivers/acpi/namespace/nsdump.c | |||
| @@ -75,7 +75,7 @@ void acpi_ns_print_pathname(u32 num_segments, char *pathname) | |||
| 75 | { | 75 | { |
| 76 | acpi_native_uint i; | 76 | acpi_native_uint i; |
| 77 | 77 | ||
| 78 | ACPI_FUNCTION_NAME("ns_print_pathname"); | 78 | ACPI_FUNCTION_NAME(ns_print_pathname); |
| 79 | 79 | ||
| 80 | if (!(acpi_dbg_level & ACPI_LV_NAMES) | 80 | if (!(acpi_dbg_level & ACPI_LV_NAMES) |
| 81 | || !(acpi_dbg_layer & ACPI_NAMESPACE)) { | 81 | || !(acpi_dbg_layer & ACPI_NAMESPACE)) { |
| @@ -123,7 +123,7 @@ void | |||
| 123 | acpi_ns_dump_pathname(acpi_handle handle, char *msg, u32 level, u32 component) | 123 | acpi_ns_dump_pathname(acpi_handle handle, char *msg, u32 level, u32 component) |
| 124 | { | 124 | { |
| 125 | 125 | ||
| 126 | ACPI_FUNCTION_TRACE("ns_dump_pathname"); | 126 | ACPI_FUNCTION_TRACE(ns_dump_pathname); |
| 127 | 127 | ||
| 128 | /* Do this only if the requested debug level and component are enabled */ | 128 | /* Do this only if the requested debug level and component are enabled */ |
| 129 | 129 | ||
| @@ -167,7 +167,7 @@ acpi_ns_dump_one_object(acpi_handle obj_handle, | |||
| 167 | u32 dbg_level; | 167 | u32 dbg_level; |
| 168 | u32 i; | 168 | u32 i; |
| 169 | 169 | ||
| 170 | ACPI_FUNCTION_NAME("ns_dump_one_object"); | 170 | ACPI_FUNCTION_NAME(ns_dump_one_object); |
| 171 | 171 | ||
| 172 | /* Is output enabled? */ | 172 | /* Is output enabled? */ |
| 173 | 173 | ||
| @@ -191,6 +191,7 @@ acpi_ns_dump_one_object(acpi_handle obj_handle, | |||
| 191 | } | 191 | } |
| 192 | 192 | ||
| 193 | if (!(info->display_type & ACPI_DISPLAY_SHORT)) { | 193 | if (!(info->display_type & ACPI_DISPLAY_SHORT)) { |
| 194 | |||
| 194 | /* Indent the object according to the level */ | 195 | /* Indent the object according to the level */ |
| 195 | 196 | ||
| 196 | acpi_os_printf("%2d%*s", (u32) level - 1, (int)level * 2, " "); | 197 | acpi_os_printf("%2d%*s", (u32) level - 1, (int)level * 2, " "); |
| @@ -203,6 +204,9 @@ acpi_ns_dump_one_object(acpi_handle obj_handle, | |||
| 203 | } | 204 | } |
| 204 | 205 | ||
| 205 | if (!acpi_ut_valid_acpi_name(this_node->name.integer)) { | 206 | if (!acpi_ut_valid_acpi_name(this_node->name.integer)) { |
| 207 | this_node->name.integer = | ||
| 208 | acpi_ut_repair_name(this_node->name.integer); | ||
| 209 | |||
| 206 | ACPI_WARNING((AE_INFO, "Invalid ACPI Name %08X", | 210 | ACPI_WARNING((AE_INFO, "Invalid ACPI Name %08X", |
| 207 | this_node->name.integer)); | 211 | this_node->name.integer)); |
| 208 | } | 212 | } |
| @@ -226,6 +230,7 @@ acpi_ns_dump_one_object(acpi_handle obj_handle, | |||
| 226 | case ACPI_DISPLAY_SUMMARY: | 230 | case ACPI_DISPLAY_SUMMARY: |
| 227 | 231 | ||
| 228 | if (!obj_desc) { | 232 | if (!obj_desc) { |
| 233 | |||
| 229 | /* No attached object, we are done */ | 234 | /* No attached object, we are done */ |
| 230 | 235 | ||
| 231 | acpi_os_printf("\n"); | 236 | acpi_os_printf("\n"); |
| @@ -419,6 +424,7 @@ acpi_ns_dump_one_object(acpi_handle obj_handle, | |||
| 419 | 424 | ||
| 420 | acpi_os_printf("O:%p", obj_desc); | 425 | acpi_os_printf("O:%p", obj_desc); |
| 421 | if (!obj_desc) { | 426 | if (!obj_desc) { |
| 427 | |||
| 422 | /* No attached object, we are done */ | 428 | /* No attached object, we are done */ |
| 423 | 429 | ||
| 424 | acpi_os_printf("\n"); | 430 | acpi_os_printf("\n"); |
| @@ -669,7 +675,7 @@ void acpi_ns_dump_tables(acpi_handle search_base, u32 max_depth) | |||
| 669 | { | 675 | { |
| 670 | acpi_handle search_handle = search_base; | 676 | acpi_handle search_handle = search_base; |
| 671 | 677 | ||
| 672 | ACPI_FUNCTION_TRACE("ns_dump_tables"); | 678 | ACPI_FUNCTION_TRACE(ns_dump_tables); |
| 673 | 679 | ||
| 674 | if (!acpi_gbl_root_node) { | 680 | if (!acpi_gbl_root_node) { |
| 675 | /* | 681 | /* |
| @@ -682,6 +688,7 @@ void acpi_ns_dump_tables(acpi_handle search_base, u32 max_depth) | |||
| 682 | } | 688 | } |
| 683 | 689 | ||
| 684 | if (ACPI_NS_ALL == search_base) { | 690 | if (ACPI_NS_ALL == search_base) { |
| 691 | |||
| 685 | /* Entire namespace */ | 692 | /* Entire namespace */ |
| 686 | 693 | ||
| 687 | search_handle = acpi_gbl_root_node; | 694 | search_handle = acpi_gbl_root_node; |
