utdebug.c (df9b42963f2d010ae3163a894ce22cf6b27cd344) utdebug.c (6d33b6be17dd6a0934396704f969ceb7f3206347)
1/******************************************************************************
2 *
3 * Module Name: utdebug - Debug print routines
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2012, Intel Corp.

--- 33 unchanged lines hidden (view full) ---

42 */
43
44#include <linux/export.h>
45#include <acpi/acpi.h>
46#include "accommon.h"
47
48#define _COMPONENT ACPI_UTILITIES
49ACPI_MODULE_NAME("utdebug")
1/******************************************************************************
2 *
3 * Module Name: utdebug - Debug print routines
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2012, Intel Corp.

--- 33 unchanged lines hidden (view full) ---

42 */
43
44#include <linux/export.h>
45#include <acpi/acpi.h>
46#include "accommon.h"
47
48#define _COMPONENT ACPI_UTILITIES
49ACPI_MODULE_NAME("utdebug")
50
50#ifdef ACPI_DEBUG_OUTPUT
51#ifdef ACPI_DEBUG_OUTPUT
51static acpi_thread_id acpi_gbl_prev_thread_id;
52static acpi_thread_id acpi_gbl_prev_thread_id = (acpi_thread_id) 0xFFFFFFFF;
52static char *acpi_gbl_fn_entry_str = "----Entry";
53static char *acpi_gbl_fn_exit_str = "----Exit-";
54
55/* Local prototypes */
56
57static const char *acpi_ut_trim_function_name(const char *function_name);
58
59/*******************************************************************************

--- 44 unchanged lines hidden (view full) ---

104 *
105 * FUNCTION: acpi_ut_trim_function_name
106 *
107 * PARAMETERS: function_name - Ascii string containing a procedure name
108 *
109 * RETURN: Updated pointer to the function name
110 *
111 * DESCRIPTION: Remove the "Acpi" prefix from the function name, if present.
53static char *acpi_gbl_fn_entry_str = "----Entry";
54static char *acpi_gbl_fn_exit_str = "----Exit-";
55
56/* Local prototypes */
57
58static const char *acpi_ut_trim_function_name(const char *function_name);
59
60/*******************************************************************************

--- 44 unchanged lines hidden (view full) ---

105 *
106 * FUNCTION: acpi_ut_trim_function_name
107 *
108 * PARAMETERS: function_name - Ascii string containing a procedure name
109 *
110 * RETURN: Updated pointer to the function name
111 *
112 * DESCRIPTION: Remove the "Acpi" prefix from the function name, if present.
112 * This allows compiler macros such as __func__ to be used
113 * This allows compiler macros such as __FUNCTION__ to be used
113 * with no change to the debug output.
114 *
115 ******************************************************************************/
116
117static const char *acpi_ut_trim_function_name(const char *function_name)
118{
119
120 /* All Function names are longer than 4 chars, check is safe */

--- 393 unchanged lines hidden (view full) ---

514 * component_ID - Caller's component ID
515 *
516 * RETURN: None
517 *
518 * DESCRIPTION: Generic dump buffer in both hex and ascii.
519 *
520 ******************************************************************************/
521
114 * with no change to the debug output.
115 *
116 ******************************************************************************/
117
118static const char *acpi_ut_trim_function_name(const char *function_name)
119{
120
121 /* All Function names are longer than 4 chars, check is safe */

--- 393 unchanged lines hidden (view full) ---

515 * component_ID - Caller's component ID
516 *
517 * RETURN: None
518 *
519 * DESCRIPTION: Generic dump buffer in both hex and ascii.
520 *
521 ******************************************************************************/
522
522void acpi_ut_dump_buffer2(u8 * buffer, u32 count, u32 display)
523void acpi_ut_dump_buffer2(u8 *buffer, u32 count, u32 display)
523{
524 u32 i = 0;
525 u32 j;
526 u32 temp32;
527 u8 buf_char;
528
529 if (!buffer) {
530 acpi_os_printf("Null Buffer Pointer in DumpBuffer!\n");

--- 100 unchanged lines hidden (view full) ---

631 * component_ID - Caller's component ID
632 *
633 * RETURN: None
634 *
635 * DESCRIPTION: Generic dump buffer in both hex and ascii.
636 *
637 ******************************************************************************/
638
524{
525 u32 i = 0;
526 u32 j;
527 u32 temp32;
528 u8 buf_char;
529
530 if (!buffer) {
531 acpi_os_printf("Null Buffer Pointer in DumpBuffer!\n");

--- 100 unchanged lines hidden (view full) ---

632 * component_ID - Caller's component ID
633 *
634 * RETURN: None
635 *
636 * DESCRIPTION: Generic dump buffer in both hex and ascii.
637 *
638 ******************************************************************************/
639
639void acpi_ut_dump_buffer(u8 * buffer, u32 count, u32 display, u32 component_id)
640void acpi_ut_dump_buffer(u8 *buffer, u32 count, u32 display, u32 component_id)
640{
641
642 /* Only dump the buffer if tracing is enabled */
643
644 if (!((ACPI_LV_TABLES & acpi_dbg_level) &&
645 (component_id & acpi_dbg_layer))) {
646 return;
647 }
648
649 acpi_ut_dump_buffer2(buffer, count, display);
650}
641{
642
643 /* Only dump the buffer if tracing is enabled */
644
645 if (!((ACPI_LV_TABLES & acpi_dbg_level) &&
646 (component_id & acpi_dbg_layer))) {
647 return;
648 }
649
650 acpi_ut_dump_buffer2(buffer, count, display);
651}