diff options
| -rw-r--r-- | drivers/acpi/acpica/exdump.c | 4 | ||||
| -rw-r--r-- | drivers/acpi/acpica/utdebug.c | 16 |
2 files changed, 16 insertions, 4 deletions
diff --git a/drivers/acpi/acpica/exdump.c b/drivers/acpi/acpica/exdump.c index 83398dc4b7c2..ccdd2a417aa1 100644 --- a/drivers/acpi/acpica/exdump.c +++ b/drivers/acpi/acpica/exdump.c | |||
| @@ -904,7 +904,7 @@ void | |||
| 904 | acpi_ex_dump_operands(union acpi_operand_object **operands, | 904 | acpi_ex_dump_operands(union acpi_operand_object **operands, |
| 905 | const char *opcode_name, u32 num_operands) | 905 | const char *opcode_name, u32 num_operands) |
| 906 | { | 906 | { |
| 907 | ACPI_FUNCTION_NAME(ex_dump_operands); | 907 | ACPI_FUNCTION_TRACE(ex_dump_operands); |
| 908 | 908 | ||
| 909 | if (!opcode_name) { | 909 | if (!opcode_name) { |
| 910 | opcode_name = "UNKNOWN"; | 910 | opcode_name = "UNKNOWN"; |
| @@ -928,7 +928,7 @@ acpi_ex_dump_operands(union acpi_operand_object **operands, | |||
| 928 | 928 | ||
| 929 | ACPI_DEBUG_PRINT((ACPI_DB_EXEC, | 929 | ACPI_DEBUG_PRINT((ACPI_DB_EXEC, |
| 930 | "**** End operand dump for [%s]\n", opcode_name)); | 930 | "**** End operand dump for [%s]\n", opcode_name)); |
| 931 | return; | 931 | return_VOID; |
| 932 | } | 932 | } |
| 933 | 933 | ||
| 934 | /******************************************************************************* | 934 | /******************************************************************************* |
diff --git a/drivers/acpi/acpica/utdebug.c b/drivers/acpi/acpica/utdebug.c index 615a885e2ca3..77d8c9054b8e 100644 --- a/drivers/acpi/acpica/utdebug.c +++ b/drivers/acpi/acpica/utdebug.c | |||
| @@ -163,6 +163,7 @@ acpi_debug_print(u32 requested_debug_level, | |||
| 163 | { | 163 | { |
| 164 | acpi_thread_id thread_id; | 164 | acpi_thread_id thread_id; |
| 165 | va_list args; | 165 | va_list args; |
| 166 | int fill_count; | ||
| 166 | 167 | ||
| 167 | /* Check if debug output enabled */ | 168 | /* Check if debug output enabled */ |
| 168 | 169 | ||
| @@ -202,10 +203,21 @@ acpi_debug_print(u32 requested_debug_level, | |||
| 202 | acpi_os_printf("[%u] ", (u32)thread_id); | 203 | acpi_os_printf("[%u] ", (u32)thread_id); |
| 203 | } | 204 | } |
| 204 | 205 | ||
| 205 | acpi_os_printf("[%02ld] ", acpi_gbl_nesting_level); | 206 | fill_count = 48 - acpi_gbl_nesting_level - |
| 206 | #endif | 207 | strlen(acpi_ut_trim_function_name(function_name)); |
| 208 | if (fill_count < 0) { | ||
| 209 | fill_count = 0; | ||
| 210 | } | ||
| 207 | 211 | ||
| 212 | acpi_os_printf("[%02ld] %*s", | ||
| 213 | acpi_gbl_nesting_level, acpi_gbl_nesting_level, " "); | ||
| 214 | acpi_os_printf("%s%*s: ", | ||
| 215 | acpi_ut_trim_function_name(function_name), fill_count, | ||
| 216 | " "); | ||
| 217 | |||
| 218 | #else | ||
| 208 | acpi_os_printf("%-22.22s: ", acpi_ut_trim_function_name(function_name)); | 219 | acpi_os_printf("%-22.22s: ", acpi_ut_trim_function_name(function_name)); |
| 220 | #endif | ||
| 209 | 221 | ||
| 210 | va_start(args, format); | 222 | va_start(args, format); |
| 211 | acpi_os_vprintf(format, args); | 223 | acpi_os_vprintf(format, args); |
