diff options
| -rw-r--r-- | drivers/acpi/acpica/acutils.h | 5 | ||||
| -rw-r--r-- | drivers/acpi/acpica/utdebug.c | 37 | ||||
| -rw-r--r-- | drivers/acpi/acpica/utdecode.c | 2 | ||||
| -rw-r--r-- | include/acpi/acoutput.h | 6 |
4 files changed, 48 insertions, 2 deletions
diff --git a/drivers/acpi/acpica/acutils.h b/drivers/acpi/acpica/acutils.h index a7dbb2b882cf..0bb6325508b3 100644 --- a/drivers/acpi/acpica/acutils.h +++ b/drivers/acpi/acpica/acutils.h | |||
| @@ -318,6 +318,11 @@ acpi_ut_ptr_exit(u32 line_number, | |||
| 318 | const char *module_name, u32 component_id, u8 *ptr); | 318 | const char *module_name, u32 component_id, u8 *ptr); |
| 319 | 319 | ||
| 320 | void | 320 | void |
| 321 | acpi_ut_str_exit(u32 line_number, | ||
| 322 | const char *function_name, | ||
| 323 | const char *module_name, u32 component_id, const char *string); | ||
| 324 | |||
| 325 | void | ||
| 321 | acpi_ut_debug_dump_buffer(u8 *buffer, u32 count, u32 display, u32 component_id); | 326 | acpi_ut_debug_dump_buffer(u8 *buffer, u32 count, u32 display, u32 component_id); |
| 322 | 327 | ||
| 323 | void acpi_ut_dump_buffer(u8 *buffer, u32 count, u32 display, u32 offset); | 328 | void acpi_ut_dump_buffer(u8 *buffer, u32 count, u32 display, u32 offset); |
diff --git a/drivers/acpi/acpica/utdebug.c b/drivers/acpi/acpica/utdebug.c index 574422205005..84c08539117d 100644 --- a/drivers/acpi/acpica/utdebug.c +++ b/drivers/acpi/acpica/utdebug.c | |||
| @@ -562,6 +562,43 @@ acpi_ut_ptr_exit(u32 line_number, | |||
| 562 | 562 | ||
| 563 | /******************************************************************************* | 563 | /******************************************************************************* |
| 564 | * | 564 | * |
| 565 | * FUNCTION: acpi_ut_str_exit | ||
| 566 | * | ||
| 567 | * PARAMETERS: line_number - Caller's line number | ||
| 568 | * function_name - Caller's procedure name | ||
| 569 | * module_name - Caller's module name | ||
| 570 | * component_id - Caller's component ID | ||
| 571 | * string - String to display | ||
| 572 | * | ||
| 573 | * RETURN: None | ||
| 574 | * | ||
| 575 | * DESCRIPTION: Function exit trace. Prints only if TRACE_FUNCTIONS bit is | ||
| 576 | * set in debug_level. Prints exit value also. | ||
| 577 | * | ||
| 578 | ******************************************************************************/ | ||
| 579 | |||
| 580 | void | ||
| 581 | acpi_ut_str_exit(u32 line_number, | ||
| 582 | const char *function_name, | ||
| 583 | const char *module_name, u32 component_id, const char *string) | ||
| 584 | { | ||
| 585 | |||
| 586 | /* Check if enabled up-front for performance */ | ||
| 587 | |||
| 588 | if (ACPI_IS_DEBUG_ENABLED(ACPI_LV_FUNCTIONS, component_id)) { | ||
| 589 | acpi_debug_print(ACPI_LV_FUNCTIONS, | ||
| 590 | line_number, function_name, module_name, | ||
| 591 | component_id, "%s %s\n", | ||
| 592 | acpi_gbl_function_exit_prefix, string); | ||
| 593 | } | ||
| 594 | |||
| 595 | if (acpi_gbl_nesting_level) { | ||
| 596 | acpi_gbl_nesting_level--; | ||
| 597 | } | ||
| 598 | } | ||
| 599 | |||
| 600 | /******************************************************************************* | ||
| 601 | * | ||
| 565 | * FUNCTION: acpi_trace_point | 602 | * FUNCTION: acpi_trace_point |
| 566 | * | 603 | * |
| 567 | * PARAMETERS: type - Trace event type | 604 | * PARAMETERS: type - Trace event type |
diff --git a/drivers/acpi/acpica/utdecode.c b/drivers/acpi/acpica/utdecode.c index efd7988e34cb..15728ad8356b 100644 --- a/drivers/acpi/acpica/utdecode.c +++ b/drivers/acpi/acpica/utdecode.c | |||
| @@ -253,7 +253,7 @@ const char *acpi_ut_get_object_type_name(union acpi_operand_object *obj_desc) | |||
| 253 | return_PTR("Invalid object"); | 253 | return_PTR("Invalid object"); |
| 254 | } | 254 | } |
| 255 | 255 | ||
| 256 | return_PTR(acpi_ut_get_type_name(obj_desc->common.type)); | 256 | return_STR(acpi_ut_get_type_name(obj_desc->common.type)); |
| 257 | } | 257 | } |
| 258 | 258 | ||
| 259 | /******************************************************************************* | 259 | /******************************************************************************* |
diff --git a/include/acpi/acoutput.h b/include/acpi/acoutput.h index 34f601e7b88d..48eb4dd99bb1 100644 --- a/include/acpi/acoutput.h +++ b/include/acpi/acoutput.h | |||
| @@ -366,7 +366,7 @@ | |||
| 366 | ACPI_TRACE_ENTRY (name, acpi_ut_trace_u32, u32, value) | 366 | ACPI_TRACE_ENTRY (name, acpi_ut_trace_u32, u32, value) |
| 367 | 367 | ||
| 368 | #define ACPI_FUNCTION_TRACE_STR(name, string) \ | 368 | #define ACPI_FUNCTION_TRACE_STR(name, string) \ |
| 369 | ACPI_TRACE_ENTRY (name, acpi_ut_trace_str, char *, string) | 369 | ACPI_TRACE_ENTRY (name, acpi_ut_trace_str, const char *, string) |
| 370 | 370 | ||
| 371 | #define ACPI_FUNCTION_ENTRY() \ | 371 | #define ACPI_FUNCTION_ENTRY() \ |
| 372 | acpi_ut_track_stack_ptr() | 372 | acpi_ut_track_stack_ptr() |
| @@ -425,6 +425,9 @@ | |||
| 425 | #define return_PTR(pointer) \ | 425 | #define return_PTR(pointer) \ |
| 426 | ACPI_TRACE_EXIT (acpi_ut_ptr_exit, void *, pointer) | 426 | ACPI_TRACE_EXIT (acpi_ut_ptr_exit, void *, pointer) |
| 427 | 427 | ||
| 428 | #define return_STR(string) \ | ||
| 429 | ACPI_TRACE_EXIT (acpi_ut_str_exit, const char *, string) | ||
| 430 | |||
| 428 | #define return_VALUE(value) \ | 431 | #define return_VALUE(value) \ |
| 429 | ACPI_TRACE_EXIT (acpi_ut_value_exit, u64, value) | 432 | ACPI_TRACE_EXIT (acpi_ut_value_exit, u64, value) |
| 430 | 433 | ||
| @@ -478,6 +481,7 @@ | |||
| 478 | #define return_VOID return | 481 | #define return_VOID return |
| 479 | #define return_ACPI_STATUS(s) return(s) | 482 | #define return_ACPI_STATUS(s) return(s) |
| 480 | #define return_PTR(s) return(s) | 483 | #define return_PTR(s) return(s) |
| 484 | #define return_STR(s) return(s) | ||
| 481 | #define return_VALUE(s) return(s) | 485 | #define return_VALUE(s) return(s) |
| 482 | #define return_UINT8(s) return(s) | 486 | #define return_UINT8(s) return(s) |
| 483 | #define return_UINT32(s) return(s) | 487 | #define return_UINT32(s) return(s) |
