aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Schmauss <erik.schmauss@intel.com>2018-08-10 17:43:01 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-08-14 17:49:13 -0400
commitff5340f8ac94d65609424675d587c030da951a53 (patch)
treea4690222264cff4cde10b7629b3b762ccf78f2c4
parent77d4e0966a8a6f8a3aa9d27b067a1fc0ec10628d (diff)
ACPICA: Reference count: add additional debugging details
Make reference counting diagnostics provide more information on what has happened. Signed-off-by: Erik Schmauss <erik.schmauss@intel.com> [ rjw: Changelog ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/acpi/acpica/utdelete.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/acpi/acpica/utdelete.c b/drivers/acpi/acpica/utdelete.c
index 118f3ff1fbb5..8cc4392c61f3 100644
--- a/drivers/acpi/acpica/utdelete.c
+++ b/drivers/acpi/acpica/utdelete.c
@@ -355,6 +355,7 @@ acpi_ut_update_ref_count(union acpi_operand_object *object, u32 action)
355 u16 original_count; 355 u16 original_count;
356 u16 new_count = 0; 356 u16 new_count = 0;
357 acpi_cpu_flags lock_flags; 357 acpi_cpu_flags lock_flags;
358 char *message;
358 359
359 ACPI_FUNCTION_NAME(ut_update_ref_count); 360 ACPI_FUNCTION_NAME(ut_update_ref_count);
360 361
@@ -391,6 +392,7 @@ acpi_ut_update_ref_count(union acpi_operand_object *object, u32 action)
391 object, object->common.type, 392 object, object->common.type,
392 acpi_ut_get_object_type_name(object), 393 acpi_ut_get_object_type_name(object),
393 new_count)); 394 new_count));
395 message = "Incremement";
394 break; 396 break;
395 397
396 case REF_DECREMENT: 398 case REF_DECREMENT:
@@ -420,6 +422,7 @@ acpi_ut_update_ref_count(union acpi_operand_object *object, u32 action)
420 if (new_count == 0) { 422 if (new_count == 0) {
421 acpi_ut_delete_internal_obj(object); 423 acpi_ut_delete_internal_obj(object);
422 } 424 }
425 message = "Decrement";
423 break; 426 break;
424 427
425 default: 428 default:
@@ -436,8 +439,8 @@ acpi_ut_update_ref_count(union acpi_operand_object *object, u32 action)
436 */ 439 */
437 if (new_count > ACPI_MAX_REFERENCE_COUNT) { 440 if (new_count > ACPI_MAX_REFERENCE_COUNT) {
438 ACPI_WARNING((AE_INFO, 441 ACPI_WARNING((AE_INFO,
439 "Large Reference Count (0x%X) in object %p, Type=0x%.2X", 442 "Large Reference Count (0x%X) in object %p, Type=0x%.2X Operation=%s",
440 new_count, object, object->common.type)); 443 new_count, object, object->common.type, message));
441 } 444 }
442} 445}
443 446