diff options
| -rw-r--r-- | drivers/acpi/acpica/dbnames.c | 1 | ||||
| -rw-r--r-- | drivers/acpi/acpica/nsdump.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/dbnames.c b/drivers/acpi/acpica/dbnames.c index dc94de91033e..992bd7b92540 100644 --- a/drivers/acpi/acpica/dbnames.c +++ b/drivers/acpi/acpica/dbnames.c | |||
| @@ -322,6 +322,7 @@ acpi_db_walk_and_match_name(acpi_handle obj_handle, | |||
| 322 | acpi_os_printf("Could Not get pathname for object %p\n", | 322 | acpi_os_printf("Could Not get pathname for object %p\n", |
| 323 | obj_handle); | 323 | obj_handle); |
| 324 | } else { | 324 | } else { |
| 325 | info.count = 0; | ||
| 325 | info.owner_id = ACPI_OWNER_ID_MAX; | 326 | info.owner_id = ACPI_OWNER_ID_MAX; |
| 326 | info.debug_level = ACPI_UINT32_MAX; | 327 | info.debug_level = ACPI_UINT32_MAX; |
| 327 | info.display_type = ACPI_DISPLAY_SUMMARY | ACPI_DISPLAY_SHORT; | 328 | info.display_type = ACPI_DISPLAY_SUMMARY | ACPI_DISPLAY_SHORT; |
diff --git a/drivers/acpi/acpica/nsdump.c b/drivers/acpi/acpica/nsdump.c index 4bdbd1d8431b..90ccffcd770b 100644 --- a/drivers/acpi/acpica/nsdump.c +++ b/drivers/acpi/acpica/nsdump.c | |||
| @@ -170,6 +170,7 @@ acpi_ns_dump_one_object(acpi_handle obj_handle, | |||
| 170 | } | 170 | } |
| 171 | 171 | ||
| 172 | type = this_node->type; | 172 | type = this_node->type; |
| 173 | info->count++; | ||
| 173 | 174 | ||
| 174 | /* Check if the owner matches */ | 175 | /* Check if the owner matches */ |
| 175 | 176 | ||
| @@ -639,6 +640,7 @@ acpi_ns_dump_objects(acpi_object_type type, | |||
| 639 | return; | 640 | return; |
| 640 | } | 641 | } |
| 641 | 642 | ||
| 643 | info.count = 0; | ||
| 642 | info.debug_level = ACPI_LV_TABLES; | 644 | info.debug_level = ACPI_LV_TABLES; |
| 643 | info.owner_id = owner_id; | 645 | info.owner_id = owner_id; |
| 644 | info.display_type = display_type; | 646 | info.display_type = display_type; |
| @@ -649,6 +651,7 @@ acpi_ns_dump_objects(acpi_object_type type, | |||
| 649 | acpi_ns_dump_one_object, NULL, | 651 | acpi_ns_dump_one_object, NULL, |
| 650 | (void *)&info, NULL); | 652 | (void *)&info, NULL); |
| 651 | 653 | ||
| 654 | acpi_os_printf("\nNamespace node count: %u\n\n", info.count); | ||
| 652 | (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); | 655 | (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); |
| 653 | } | 656 | } |
| 654 | 657 | ||
