44 #include <linux/export.h>
48 #define _COMPONENT ACPI_UTILITIES
50 #ifdef ACPI_DEBUG_OUTPUT
52 static char *acpi_gbl_fn_entry_str =
"----Entry";
53 static char *acpi_gbl_fn_exit_str =
"----Exit-";
57 static const char *acpi_ut_trim_function_name(
const char *function_name);
75 acpi_gbl_entry_stack_pointer = ¤t_sp;
94 if (¤t_sp < acpi_gbl_lowest_stack_pointer) {
95 acpi_gbl_lowest_stack_pointer = ¤t_sp;
117 static const char *acpi_ut_trim_function_name(
const char *function_name)
126 return (function_name + 4);
133 return (function_name + 5);
136 return (function_name);
159 acpi_debug_print(
u32 requested_debug_level,
161 const char *function_name,
163 u32 component_id,
const char *
format, ...)
180 if (thread_id != acpi_gbl_prev_thread_id) {
183 (
"\n**** Context Switch from TID %u to TID %u ****\n\n",
184 (
u32)acpi_gbl_prev_thread_id, (
u32)thread_id);
187 acpi_gbl_prev_thread_id = thread_id;
202 acpi_ut_trim_function_name(function_name));
230 acpi_debug_print_raw(
u32 requested_debug_level,
232 const char *function_name,
233 const char *module_name,
234 u32 component_id,
const char *format, ...)
238 if (!(requested_debug_level & acpi_dbg_level) ||
239 !(component_id & acpi_dbg_layer)) {
267 const char *function_name,
268 const char *module_name,
u32 component_id)
275 line_number, function_name, module_name, component_id,
276 "%s\n", acpi_gbl_fn_entry_str);
299 const char *function_name,
306 line_number, function_name, module_name, component_id,
307 "%s %p\n", acpi_gbl_fn_entry_str, pointer);
329 const char *function_name,
330 const char *module_name,
u32 component_id,
char *
string)
337 line_number, function_name, module_name, component_id,
338 "%s %s\n", acpi_gbl_fn_entry_str,
string);
360 const char *function_name,
368 line_number, function_name, module_name, component_id,
369 "%s %08X\n", acpi_gbl_fn_entry_str, integer);
390 const char *function_name,
391 const char *module_name,
u32 component_id)
395 line_number, function_name, module_name, component_id,
396 "%s\n", acpi_gbl_fn_exit_str);
421 const char *function_name,
422 const char *module_name,
428 line_number, function_name, module_name,
429 component_id,
"%s %s\n", acpi_gbl_fn_exit_str,
433 line_number, function_name, module_name,
434 component_id,
"%s ****Exception****: %s\n",
435 acpi_gbl_fn_exit_str,
462 const char *function_name,
467 line_number, function_name, module_name, component_id,
468 "%s %8.8X%8.8X\n", acpi_gbl_fn_exit_str,
494 const char *function_name,
499 line_number, function_name, module_name, component_id,
500 "%s %p\n", acpi_gbl_fn_exit_str, ptr);
534 if ((count < 4) || (count & 0x01)) {
548 for (j = 0; j < 16;) {
549 if (i + j >= count) {
563 buffer[(acpi_size) i + j]);
569 &buffer[(acpi_size) i + j]);
576 &buffer[(acpi_size) i + j]);
583 &buffer[(acpi_size) i + j]);
587 &buffer[(acpi_size) i + j +
601 for (j = 0; j < 16; j++) {
602 if (i + j >= count) {
607 buf_char = buffer[(acpi_size) i + j];
645 (component_id & acpi_dbg_layer))) {