diff options
author | Bob Moore <robert.moore@intel.com> | 2006-01-13 16:22:00 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-01-20 02:23:50 -0500 |
commit | 4a90c7e86202f46fa9af011bdbcdf36e355d1721 (patch) | |
tree | 3784cffb2166330d6f94ea53996fbeef36f58ce3 /drivers/acpi/dispatcher/dsinit.c | |
parent | 3c5c363826e435cf4d54d917202567e5b57cae5f (diff) |
[ACPI] ACPICA 20060113
Added 2006 copyright.
At SuSE's suggestion, enabled all error messages
without enabling function tracing, ie with CONFIG_ACPI_DEBUG=n
Replaced all instances of the ACPI_DEBUG_PRINT macro invoked at
the ACPI_DB_ERROR and ACPI_DB_WARN debug levels with
the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros,
respectively. This preserves all error and warning messages
in the non-debug version of the ACPICA code (this has been
referred to as the "debug lite" option.) Over 200 cases
were converted to create a total of over 380 error/warning
messages across the ACPICA code. This increases the code
and data size of the default non-debug version by about 13K.
Added ACPI_NO_ERROR_MESSAGES flag to enable deleting all messages.
The size of the debug version remains about the same.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/dispatcher/dsinit.c')
-rw-r--r-- | drivers/acpi/dispatcher/dsinit.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/drivers/acpi/dispatcher/dsinit.c b/drivers/acpi/dispatcher/dsinit.c index 4fa80abfe6c0..258fbdfaa69c 100644 --- a/drivers/acpi/dispatcher/dsinit.c +++ b/drivers/acpi/dispatcher/dsinit.c | |||
@@ -5,7 +5,7 @@ | |||
5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
@@ -84,7 +84,7 @@ acpi_ds_init_one_object(acpi_handle obj_handle, | |||
84 | acpi_object_type type; | 84 | acpi_object_type type; |
85 | acpi_status status; | 85 | acpi_status status; |
86 | 86 | ||
87 | ACPI_FUNCTION_NAME("ds_init_one_object"); | 87 | ACPI_FUNCTION_ENTRY(); |
88 | 88 | ||
89 | /* | 89 | /* |
90 | * We are only interested in NS nodes owned by the table that | 90 | * We are only interested in NS nodes owned by the table that |
@@ -105,11 +105,7 @@ acpi_ds_init_one_object(acpi_handle obj_handle, | |||
105 | 105 | ||
106 | status = acpi_ds_initialize_region(obj_handle); | 106 | status = acpi_ds_initialize_region(obj_handle); |
107 | if (ACPI_FAILURE(status)) { | 107 | if (ACPI_FAILURE(status)) { |
108 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 108 | ACPI_REPORT_ERROR(("Region %p [%4.4s] - Init failure, %s\n", obj_handle, acpi_ut_get_node_name(obj_handle), acpi_format_exception(status))); |
109 | "Region %p [%4.4s] - Init failure, %s\n", | ||
110 | obj_handle, | ||
111 | acpi_ut_get_node_name(obj_handle), | ||
112 | acpi_format_exception(status))); | ||
113 | } | 109 | } |
114 | 110 | ||
115 | info->op_region_count++; | 111 | info->op_region_count++; |
@@ -148,11 +144,7 @@ acpi_ds_init_one_object(acpi_handle obj_handle, | |||
148 | */ | 144 | */ |
149 | status = acpi_ds_parse_method(obj_handle); | 145 | status = acpi_ds_parse_method(obj_handle); |
150 | if (ACPI_FAILURE(status)) { | 146 | if (ACPI_FAILURE(status)) { |
151 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 147 | ACPI_REPORT_ERROR(("\n+Method %p [%4.4s] - parse failure, %s\n", obj_handle, acpi_ut_get_node_name(obj_handle), acpi_format_exception(status))); |
152 | "\n+Method %p [%4.4s] - parse failure, %s\n", | ||
153 | obj_handle, | ||
154 | acpi_ut_get_node_name(obj_handle), | ||
155 | acpi_format_exception(status))); | ||
156 | 148 | ||
157 | /* This parse failed, but we will continue parsing more methods */ | 149 | /* This parse failed, but we will continue parsing more methods */ |
158 | } | 150 | } |
@@ -214,8 +206,8 @@ acpi_ds_initialize_objects(struct acpi_table_desc * table_desc, | |||
214 | status = acpi_walk_namespace(ACPI_TYPE_ANY, start_node, ACPI_UINT32_MAX, | 206 | status = acpi_walk_namespace(ACPI_TYPE_ANY, start_node, ACPI_UINT32_MAX, |
215 | acpi_ds_init_one_object, &info, NULL); | 207 | acpi_ds_init_one_object, &info, NULL); |
216 | if (ACPI_FAILURE(status)) { | 208 | if (ACPI_FAILURE(status)) { |
217 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "walk_namespace failed, %s\n", | 209 | ACPI_REPORT_ERROR(("walk_namespace failed, %s\n", |
218 | acpi_format_exception(status))); | 210 | acpi_format_exception(status))); |
219 | } | 211 | } |
220 | 212 | ||
221 | ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT, | 213 | ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT, |