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/namespace | |
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/namespace')
-rw-r--r-- | drivers/acpi/namespace/nsaccess.c | 18 | ||||
-rw-r--r-- | drivers/acpi/namespace/nsalloc.c | 7 | ||||
-rw-r--r-- | drivers/acpi/namespace/nsdump.c | 5 | ||||
-rw-r--r-- | drivers/acpi/namespace/nsdumpdv.c | 2 | ||||
-rw-r--r-- | drivers/acpi/namespace/nseval.c | 5 | ||||
-rw-r--r-- | drivers/acpi/namespace/nsinit.c | 22 | ||||
-rw-r--r-- | drivers/acpi/namespace/nsload.c | 6 | ||||
-rw-r--r-- | drivers/acpi/namespace/nsnames.c | 10 | ||||
-rw-r--r-- | drivers/acpi/namespace/nsobject.c | 10 | ||||
-rw-r--r-- | drivers/acpi/namespace/nsparse.c | 2 | ||||
-rw-r--r-- | drivers/acpi/namespace/nssearch.c | 11 | ||||
-rw-r--r-- | drivers/acpi/namespace/nsutils.c | 29 | ||||
-rw-r--r-- | drivers/acpi/namespace/nswalk.c | 2 | ||||
-rw-r--r-- | drivers/acpi/namespace/nsxfeval.c | 21 | ||||
-rw-r--r-- | drivers/acpi/namespace/nsxfname.c | 2 | ||||
-rw-r--r-- | drivers/acpi/namespace/nsxfobj.c | 2 |
16 files changed, 66 insertions, 88 deletions
diff --git a/drivers/acpi/namespace/nsaccess.c b/drivers/acpi/namespace/nsaccess.c index 6923059ba3c7..c2db93e25b78 100644 --- a/drivers/acpi/namespace/nsaccess.c +++ b/drivers/acpi/namespace/nsaccess.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 |
@@ -110,10 +110,7 @@ acpi_status acpi_ns_root_initialize(void) | |||
110 | ACPI_NS_NO_UPSEARCH, NULL, &new_node); | 110 | ACPI_NS_NO_UPSEARCH, NULL, &new_node); |
111 | 111 | ||
112 | if (ACPI_FAILURE(status) || (!new_node)) { /* Must be on same line for code converter */ | 112 | if (ACPI_FAILURE(status) || (!new_node)) { /* Must be on same line for code converter */ |
113 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 113 | ACPI_REPORT_ERROR(("Could not create predefined name %s, %s\n", init_val->name, acpi_format_exception(status))); |
114 | "Could not create predefined name %s, %s\n", | ||
115 | init_val->name, | ||
116 | acpi_format_exception(status))); | ||
117 | } | 114 | } |
118 | 115 | ||
119 | /* | 116 | /* |
@@ -124,9 +121,7 @@ acpi_status acpi_ns_root_initialize(void) | |||
124 | if (init_val->val) { | 121 | if (init_val->val) { |
125 | status = acpi_os_predefined_override(init_val, &val); | 122 | status = acpi_os_predefined_override(init_val, &val); |
126 | if (ACPI_FAILURE(status)) { | 123 | if (ACPI_FAILURE(status)) { |
127 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 124 | ACPI_REPORT_ERROR(("Could not override predefined %s\n", init_val->name)); |
128 | "Could not override predefined %s\n", | ||
129 | init_val->name)); | ||
130 | } | 125 | } |
131 | 126 | ||
132 | if (!val) { | 127 | if (!val) { |
@@ -339,7 +334,10 @@ acpi_ns_lookup(union acpi_generic_state *scope_info, | |||
339 | prefix_node = scope_info->scope.node; | 334 | prefix_node = scope_info->scope.node; |
340 | if (ACPI_GET_DESCRIPTOR_TYPE(prefix_node) != | 335 | if (ACPI_GET_DESCRIPTOR_TYPE(prefix_node) != |
341 | ACPI_DESC_TYPE_NAMED) { | 336 | ACPI_DESC_TYPE_NAMED) { |
342 | ACPI_REPORT_ERROR(("ns_lookup: %p is not a namespace node [%s]\n", prefix_node, acpi_ut_get_descriptor_name(prefix_node))); | 337 | ACPI_REPORT_ERROR(("%p is not a namespace node [%s]\n", |
338 | prefix_node, | ||
339 | acpi_ut_get_descriptor_name | ||
340 | (prefix_node))); | ||
343 | return_ACPI_STATUS(AE_AML_INTERNAL); | 341 | return_ACPI_STATUS(AE_AML_INTERNAL); |
344 | } | 342 | } |
345 | 343 | ||
@@ -600,7 +598,7 @@ acpi_ns_lookup(union acpi_generic_state *scope_info, | |||
600 | (this_node->type != type_to_check_for)) { | 598 | (this_node->type != type_to_check_for)) { |
601 | /* Complain about a type mismatch */ | 599 | /* Complain about a type mismatch */ |
602 | 600 | ||
603 | ACPI_REPORT_WARNING(("ns_lookup: Type mismatch on %4.4s (%s), searching for (%s)\n", (char *)&simple_name, acpi_ut_get_type_name(this_node->type), acpi_ut_get_type_name(type_to_check_for))); | 601 | ACPI_REPORT_WARNING(("ns_lookup: Type mismatch on %4.4s (%s), searching for (%s)\n", ACPI_CAST_PTR(char, &simple_name), acpi_ut_get_type_name(this_node->type), acpi_ut_get_type_name(type_to_check_for))); |
604 | } | 602 | } |
605 | 603 | ||
606 | /* | 604 | /* |
diff --git a/drivers/acpi/namespace/nsalloc.c b/drivers/acpi/namespace/nsalloc.c index cc7a85f8cfe6..3db950f5d5a0 100644 --- a/drivers/acpi/namespace/nsalloc.c +++ b/drivers/acpi/namespace/nsalloc.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 |
@@ -272,9 +272,8 @@ void acpi_ns_delete_children(struct acpi_namespace_node *parent_node) | |||
272 | /* Grandchildren should have all been deleted already */ | 272 | /* Grandchildren should have all been deleted already */ |
273 | 273 | ||
274 | if (child_node->child) { | 274 | if (child_node->child) { |
275 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 275 | ACPI_REPORT_ERROR(("Found a grandchild! P=%p C=%p\n", |
276 | "Found a grandchild! P=%p C=%p\n", | 276 | parent_node, child_node)); |
277 | parent_node, child_node)); | ||
278 | } | 277 | } |
279 | 278 | ||
280 | /* Now we can free this child object */ | 279 | /* Now we can free this child object */ |
diff --git a/drivers/acpi/namespace/nsdump.c b/drivers/acpi/namespace/nsdump.c index 864c642759fa..2f0b70e3e881 100644 --- a/drivers/acpi/namespace/nsdump.c +++ b/drivers/acpi/namespace/nsdump.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 |
@@ -198,7 +198,8 @@ acpi_ns_dump_one_object(acpi_handle obj_handle, | |||
198 | /* Check the node type and name */ | 198 | /* Check the node type and name */ |
199 | 199 | ||
200 | if (type > ACPI_TYPE_LOCAL_MAX) { | 200 | if (type > ACPI_TYPE_LOCAL_MAX) { |
201 | ACPI_REPORT_WARNING(("Invalid ACPI Type %08X\n", type)); | 201 | ACPI_REPORT_WARNING(("Invalid ACPI Object Type %08X\n", |
202 | type)); | ||
202 | } | 203 | } |
203 | 204 | ||
204 | if (!acpi_ut_valid_acpi_name(this_node->name.integer)) { | 205 | if (!acpi_ut_valid_acpi_name(this_node->name.integer)) { |
diff --git a/drivers/acpi/namespace/nsdumpdv.c b/drivers/acpi/namespace/nsdumpdv.c index 55de883943d6..aff899a935e3 100644 --- a/drivers/acpi/namespace/nsdumpdv.c +++ b/drivers/acpi/namespace/nsdumpdv.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 |
diff --git a/drivers/acpi/namespace/nseval.c b/drivers/acpi/namespace/nseval.c index 0191c7d92824..e3c667072e2f 100644 --- a/drivers/acpi/namespace/nseval.c +++ b/drivers/acpi/namespace/nseval.c | |||
@@ -6,7 +6,7 @@ | |||
6 | ******************************************************************************/ | 6 | ******************************************************************************/ |
7 | 7 | ||
8 | /* | 8 | /* |
9 | * Copyright (C) 2000 - 2005, R. Byron Moore | 9 | * Copyright (C) 2000 - 2006, R. Byron Moore |
10 | * All rights reserved. | 10 | * All rights reserved. |
11 | * | 11 | * |
12 | * Redistribution and use in source and binary forms, with or without | 12 | * Redistribution and use in source and binary forms, with or without |
@@ -373,8 +373,7 @@ acpi_ns_execute_control_method(struct acpi_parameter_info *info) | |||
373 | 373 | ||
374 | info->obj_desc = acpi_ns_get_attached_object(info->node); | 374 | info->obj_desc = acpi_ns_get_attached_object(info->node); |
375 | if (!info->obj_desc) { | 375 | if (!info->obj_desc) { |
376 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 376 | ACPI_REPORT_ERROR(("No attached method object\n")); |
377 | "No attached method object\n")); | ||
378 | 377 | ||
379 | (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); | 378 | (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); |
380 | return_ACPI_STATUS(AE_NULL_OBJECT); | 379 | return_ACPI_STATUS(AE_NULL_OBJECT); |
diff --git a/drivers/acpi/namespace/nsinit.c b/drivers/acpi/namespace/nsinit.c index efa3f4233736..6c117893f301 100644 --- a/drivers/acpi/namespace/nsinit.c +++ b/drivers/acpi/namespace/nsinit.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 |
@@ -93,8 +93,8 @@ acpi_status acpi_ns_initialize_objects(void) | |||
93 | ACPI_UINT32_MAX, acpi_ns_init_one_object, | 93 | ACPI_UINT32_MAX, acpi_ns_init_one_object, |
94 | &info, NULL); | 94 | &info, NULL); |
95 | if (ACPI_FAILURE(status)) { | 95 | if (ACPI_FAILURE(status)) { |
96 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "walk_namespace failed! %s\n", | 96 | ACPI_REPORT_ERROR(("walk_namespace failed! %s\n", |
97 | acpi_format_exception(status))); | 97 | acpi_format_exception(status))); |
98 | } | 98 | } |
99 | 99 | ||
100 | ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT, | 100 | ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT, |
@@ -159,8 +159,8 @@ acpi_status acpi_ns_initialize_devices(void) | |||
159 | (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); | 159 | (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); |
160 | 160 | ||
161 | if (ACPI_FAILURE(status)) { | 161 | if (ACPI_FAILURE(status)) { |
162 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "walk_namespace failed! %s\n", | 162 | ACPI_REPORT_ERROR(("walk_namespace failed! %s\n", |
163 | acpi_format_exception(status))); | 163 | acpi_format_exception(status))); |
164 | } | 164 | } |
165 | 165 | ||
166 | ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT, | 166 | ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT, |
@@ -289,12 +289,7 @@ acpi_ns_init_one_object(acpi_handle obj_handle, | |||
289 | } | 289 | } |
290 | 290 | ||
291 | if (ACPI_FAILURE(status)) { | 291 | if (ACPI_FAILURE(status)) { |
292 | ACPI_DEBUG_PRINT_RAW((ACPI_DB_ERROR, "\n")); | 292 | ACPI_REPORT_ERROR(("\nCould not execute arguments for [%4.4s] (%s), %s\n", acpi_ut_get_node_name(node), acpi_ut_get_type_name(type), acpi_format_exception(status))); |
293 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | ||
294 | "Could not execute arguments for [%4.4s] (%s), %s\n", | ||
295 | acpi_ut_get_node_name(node), | ||
296 | acpi_ut_get_type_name(type), | ||
297 | acpi_format_exception(status))); | ||
298 | } | 293 | } |
299 | 294 | ||
300 | /* | 295 | /* |
@@ -421,8 +416,9 @@ acpi_ns_init_one_device(acpi_handle obj_handle, | |||
421 | #ifdef ACPI_DEBUG_OUTPUT | 416 | #ifdef ACPI_DEBUG_OUTPUT |
422 | char *scope_name = acpi_ns_get_external_pathname(ini_node); | 417 | char *scope_name = acpi_ns_get_external_pathname(ini_node); |
423 | 418 | ||
424 | ACPI_DEBUG_PRINT((ACPI_DB_WARN, "%s._INI failed: %s\n", | 419 | ACPI_REPORT_WARNING(("%s._INI failed: %s\n", |
425 | scope_name, acpi_format_exception(status))); | 420 | scope_name, |
421 | acpi_format_exception(status))); | ||
426 | 422 | ||
427 | ACPI_MEM_FREE(scope_name); | 423 | ACPI_MEM_FREE(scope_name); |
428 | #endif | 424 | #endif |
diff --git a/drivers/acpi/namespace/nsload.c b/drivers/acpi/namespace/nsload.c index c28849de465a..0b4a866ef5aa 100644 --- a/drivers/acpi/namespace/nsload.c +++ b/drivers/acpi/namespace/nsload.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 |
@@ -92,7 +92,7 @@ acpi_ns_load_table(struct acpi_table_desc *table_desc, | |||
92 | /* Check validity of the AML start and length */ | 92 | /* Check validity of the AML start and length */ |
93 | 93 | ||
94 | if (!table_desc->aml_start) { | 94 | if (!table_desc->aml_start) { |
95 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Null AML pointer\n")); | 95 | ACPI_REPORT_ERROR(("Null AML pointer\n")); |
96 | return_ACPI_STATUS(AE_BAD_PARAMETER); | 96 | return_ACPI_STATUS(AE_BAD_PARAMETER); |
97 | } | 97 | } |
98 | 98 | ||
@@ -263,7 +263,7 @@ acpi_status acpi_ns_load_namespace(void) | |||
263 | /* There must be at least a DSDT installed */ | 263 | /* There must be at least a DSDT installed */ |
264 | 264 | ||
265 | if (acpi_gbl_DSDT == NULL) { | 265 | if (acpi_gbl_DSDT == NULL) { |
266 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "DSDT is not in memory\n")); | 266 | ACPI_REPORT_ERROR(("DSDT is not in memory\n")); |
267 | return_ACPI_STATUS(AE_NO_ACPI_TABLES); | 267 | return_ACPI_STATUS(AE_NO_ACPI_TABLES); |
268 | } | 268 | } |
269 | 269 | ||
diff --git a/drivers/acpi/namespace/nsnames.c b/drivers/acpi/namespace/nsnames.c index 5400728eb791..411e1f8b11d0 100644 --- a/drivers/acpi/namespace/nsnames.c +++ b/drivers/acpi/namespace/nsnames.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 |
@@ -75,7 +75,7 @@ acpi_ns_build_external_path(struct acpi_namespace_node *node, | |||
75 | acpi_size index; | 75 | acpi_size index; |
76 | struct acpi_namespace_node *parent_node; | 76 | struct acpi_namespace_node *parent_node; |
77 | 77 | ||
78 | ACPI_FUNCTION_NAME("ns_build_external_path"); | 78 | ACPI_FUNCTION_ENTRY(); |
79 | 79 | ||
80 | /* Special case for root */ | 80 | /* Special case for root */ |
81 | 81 | ||
@@ -110,9 +110,7 @@ acpi_ns_build_external_path(struct acpi_namespace_node *node, | |||
110 | name_buffer[index] = AML_ROOT_PREFIX; | 110 | name_buffer[index] = AML_ROOT_PREFIX; |
111 | 111 | ||
112 | if (index != 0) { | 112 | if (index != 0) { |
113 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 113 | ACPI_REPORT_ERROR(("Could not construct pathname; index=%X, size=%X, Path=%s\n", (u32) index, (u32) size, &name_buffer[size])); |
114 | "Could not construct pathname; index=%X, size=%X, Path=%s\n", | ||
115 | (u32) index, (u32) size, &name_buffer[size])); | ||
116 | } | 114 | } |
117 | 115 | ||
118 | return; | 116 | return; |
@@ -148,7 +146,7 @@ char *acpi_ns_get_external_pathname(struct acpi_namespace_node *node) | |||
148 | 146 | ||
149 | name_buffer = ACPI_MEM_CALLOCATE(size); | 147 | name_buffer = ACPI_MEM_CALLOCATE(size); |
150 | if (!name_buffer) { | 148 | if (!name_buffer) { |
151 | ACPI_REPORT_ERROR(("ns_get_table_pathname: allocation failure\n")); | 149 | ACPI_REPORT_ERROR(("Allocation failure\n")); |
152 | return_PTR(NULL); | 150 | return_PTR(NULL); |
153 | } | 151 | } |
154 | 152 | ||
diff --git a/drivers/acpi/namespace/nsobject.c b/drivers/acpi/namespace/nsobject.c index fc9be946ebed..86113093f7b7 100644 --- a/drivers/acpi/namespace/nsobject.c +++ b/drivers/acpi/namespace/nsobject.c | |||
@@ -6,7 +6,7 @@ | |||
6 | ******************************************************************************/ | 6 | ******************************************************************************/ |
7 | 7 | ||
8 | /* | 8 | /* |
9 | * Copyright (C) 2000 - 2005, R. Byron Moore | 9 | * Copyright (C) 2000 - 2006, R. Byron Moore |
10 | * All rights reserved. | 10 | * All rights reserved. |
11 | * | 11 | * |
12 | * Redistribution and use in source and binary forms, with or without | 12 | * Redistribution and use in source and binary forms, with or without |
@@ -84,21 +84,21 @@ acpi_ns_attach_object(struct acpi_namespace_node *node, | |||
84 | if (!node) { | 84 | if (!node) { |
85 | /* Invalid handle */ | 85 | /* Invalid handle */ |
86 | 86 | ||
87 | ACPI_REPORT_ERROR(("ns_attach_object: Null named_obj handle\n")); | 87 | ACPI_REPORT_ERROR(("Null named_obj handle\n")); |
88 | return_ACPI_STATUS(AE_BAD_PARAMETER); | 88 | return_ACPI_STATUS(AE_BAD_PARAMETER); |
89 | } | 89 | } |
90 | 90 | ||
91 | if (!object && (ACPI_TYPE_ANY != type)) { | 91 | if (!object && (ACPI_TYPE_ANY != type)) { |
92 | /* Null object */ | 92 | /* Null object */ |
93 | 93 | ||
94 | ACPI_REPORT_ERROR(("ns_attach_object: Null object, but type not ACPI_TYPE_ANY\n")); | 94 | ACPI_REPORT_ERROR(("Null object, but type not ACPI_TYPE_ANY\n")); |
95 | return_ACPI_STATUS(AE_BAD_PARAMETER); | 95 | return_ACPI_STATUS(AE_BAD_PARAMETER); |
96 | } | 96 | } |
97 | 97 | ||
98 | if (ACPI_GET_DESCRIPTOR_TYPE(node) != ACPI_DESC_TYPE_NAMED) { | 98 | if (ACPI_GET_DESCRIPTOR_TYPE(node) != ACPI_DESC_TYPE_NAMED) { |
99 | /* Not a name handle */ | 99 | /* Not a name handle */ |
100 | 100 | ||
101 | ACPI_REPORT_ERROR(("ns_attach_object: Invalid handle %p [%s]\n", | 101 | ACPI_REPORT_ERROR(("Invalid handle %p [%s]\n", |
102 | node, acpi_ut_get_descriptor_name(node))); | 102 | node, acpi_ut_get_descriptor_name(node))); |
103 | return_ACPI_STATUS(AE_BAD_PARAMETER); | 103 | return_ACPI_STATUS(AE_BAD_PARAMETER); |
104 | } | 104 | } |
@@ -254,7 +254,7 @@ union acpi_operand_object *acpi_ns_get_attached_object(struct | |||
254 | ACPI_FUNCTION_TRACE_PTR("ns_get_attached_object", node); | 254 | ACPI_FUNCTION_TRACE_PTR("ns_get_attached_object", node); |
255 | 255 | ||
256 | if (!node) { | 256 | if (!node) { |
257 | ACPI_DEBUG_PRINT((ACPI_DB_WARN, "Null Node ptr\n")); | 257 | ACPI_REPORT_WARNING(("Null Node ptr\n")); |
258 | return_PTR(NULL); | 258 | return_PTR(NULL); |
259 | } | 259 | } |
260 | 260 | ||
diff --git a/drivers/acpi/namespace/nsparse.c b/drivers/acpi/namespace/nsparse.c index 433442a9ec74..232be4303653 100644 --- a/drivers/acpi/namespace/nsparse.c +++ b/drivers/acpi/namespace/nsparse.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 |
diff --git a/drivers/acpi/namespace/nssearch.c b/drivers/acpi/namespace/nssearch.c index c1b1943d4670..f094a2eb8512 100644 --- a/drivers/acpi/namespace/nssearch.c +++ b/drivers/acpi/namespace/nssearch.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 |
@@ -298,18 +298,15 @@ acpi_ns_search_and_enter(u32 target_name, | |||
298 | /* Parameter validation */ | 298 | /* Parameter validation */ |
299 | 299 | ||
300 | if (!node || !target_name || !return_node) { | 300 | if (!node || !target_name || !return_node) { |
301 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 301 | ACPI_REPORT_ERROR(("Null param: Node %p Name %X return_node %p\n", node, target_name, return_node)); |
302 | "Null param: Node %p Name %X return_node %p\n", | ||
303 | node, target_name, return_node)); | ||
304 | |||
305 | ACPI_REPORT_ERROR(("ns_search_and_enter: Null parameter\n")); | ||
306 | return_ACPI_STATUS(AE_BAD_PARAMETER); | 302 | return_ACPI_STATUS(AE_BAD_PARAMETER); |
307 | } | 303 | } |
308 | 304 | ||
309 | /* Name must consist of printable characters */ | 305 | /* Name must consist of printable characters */ |
310 | 306 | ||
311 | if (!acpi_ut_valid_acpi_name(target_name)) { | 307 | if (!acpi_ut_valid_acpi_name(target_name)) { |
312 | ACPI_REPORT_ERROR(("ns_search_and_enter: Bad character in ACPI Name: %X\n", target_name)); | 308 | ACPI_REPORT_ERROR(("Bad character in ACPI Name: %X\n", |
309 | target_name)); | ||
313 | return_ACPI_STATUS(AE_BAD_CHARACTER); | 310 | return_ACPI_STATUS(AE_BAD_CHARACTER); |
314 | } | 311 | } |
315 | 312 | ||
diff --git a/drivers/acpi/namespace/nsutils.c b/drivers/acpi/namespace/nsutils.c index 549075fb9f88..bc779fdd3caf 100644 --- a/drivers/acpi/namespace/nsutils.c +++ b/drivers/acpi/namespace/nsutils.c | |||
@@ -6,7 +6,7 @@ | |||
6 | *****************************************************************************/ | 6 | *****************************************************************************/ |
7 | 7 | ||
8 | /* | 8 | /* |
9 | * Copyright (C) 2000 - 2005, R. Byron Moore | 9 | * Copyright (C) 2000 - 2006, R. Byron Moore |
10 | * All rights reserved. | 10 | * All rights reserved. |
11 | * | 11 | * |
12 | * Redistribution and use in source and binary forms, with or without | 12 | * Redistribution and use in source and binary forms, with or without |
@@ -63,7 +63,6 @@ acpi_name acpi_ns_find_parent_name(struct acpi_namespace_node *node_to_search); | |||
63 | * | 63 | * |
64 | * PARAMETERS: module_name - Caller's module name (for error output) | 64 | * PARAMETERS: module_name - Caller's module name (for error output) |
65 | * line_number - Caller's line number (for error output) | 65 | * line_number - Caller's line number (for error output) |
66 | * component_id - Caller's component ID (for error output) | ||
67 | * internal_name - Name or path of the namespace node | 66 | * internal_name - Name or path of the namespace node |
68 | * lookup_status - Exception code from NS lookup | 67 | * lookup_status - Exception code from NS lookup |
69 | * | 68 | * |
@@ -76,14 +75,12 @@ acpi_name acpi_ns_find_parent_name(struct acpi_namespace_node *node_to_search); | |||
76 | void | 75 | void |
77 | acpi_ns_report_error(char *module_name, | 76 | acpi_ns_report_error(char *module_name, |
78 | u32 line_number, | 77 | u32 line_number, |
79 | u32 component_id, | ||
80 | char *internal_name, acpi_status lookup_status) | 78 | char *internal_name, acpi_status lookup_status) |
81 | { | 79 | { |
82 | acpi_status status; | 80 | acpi_status status; |
83 | char *name = NULL; | 81 | char *name = NULL; |
84 | 82 | ||
85 | acpi_os_printf("%8s-%04d: *** Error: Looking up ", | 83 | acpi_ut_report_error(module_name, line_number); |
86 | module_name, line_number); | ||
87 | 84 | ||
88 | if (lookup_status == AE_BAD_CHARACTER) { | 85 | if (lookup_status == AE_BAD_CHARACTER) { |
89 | /* There is a non-ascii character in the name */ | 86 | /* There is a non-ascii character in the name */ |
@@ -109,7 +106,7 @@ acpi_ns_report_error(char *module_name, | |||
109 | } | 106 | } |
110 | } | 107 | } |
111 | 108 | ||
112 | acpi_os_printf(" in namespace, %s\n", | 109 | acpi_os_printf("Namespace lookup failure, %s\n", |
113 | acpi_format_exception(lookup_status)); | 110 | acpi_format_exception(lookup_status)); |
114 | } | 111 | } |
115 | 112 | ||
@@ -119,10 +116,9 @@ acpi_ns_report_error(char *module_name, | |||
119 | * | 116 | * |
120 | * PARAMETERS: module_name - Caller's module name (for error output) | 117 | * PARAMETERS: module_name - Caller's module name (for error output) |
121 | * line_number - Caller's line number (for error output) | 118 | * line_number - Caller's line number (for error output) |
122 | * component_id - Caller's component ID (for error output) | ||
123 | * Message - Error message to use on failure | 119 | * Message - Error message to use on failure |
124 | * prefix_node - Prefix relative to the path | 120 | * prefix_node - Prefix relative to the path |
125 | * Path - Path to the node | 121 | * Path - Path to the node (optional) |
126 | * method_status - Execution status | 122 | * method_status - Execution status |
127 | * | 123 | * |
128 | * RETURN: None | 124 | * RETURN: None |
@@ -134,7 +130,6 @@ acpi_ns_report_error(char *module_name, | |||
134 | void | 130 | void |
135 | acpi_ns_report_method_error(char *module_name, | 131 | acpi_ns_report_method_error(char *module_name, |
136 | u32 line_number, | 132 | u32 line_number, |
137 | u32 component_id, | ||
138 | char *message, | 133 | char *message, |
139 | struct acpi_namespace_node *prefix_node, | 134 | struct acpi_namespace_node *prefix_node, |
140 | char *path, acpi_status method_status) | 135 | char *path, acpi_status method_status) |
@@ -142,17 +137,16 @@ acpi_ns_report_method_error(char *module_name, | |||
142 | acpi_status status; | 137 | acpi_status status; |
143 | struct acpi_namespace_node *node = prefix_node; | 138 | struct acpi_namespace_node *node = prefix_node; |
144 | 139 | ||
140 | acpi_ut_report_error(module_name, line_number); | ||
141 | |||
145 | if (path) { | 142 | if (path) { |
146 | status = acpi_ns_get_node_by_path(path, prefix_node, | 143 | status = acpi_ns_get_node_by_path(path, prefix_node, |
147 | ACPI_NS_NO_UPSEARCH, &node); | 144 | ACPI_NS_NO_UPSEARCH, &node); |
148 | if (ACPI_FAILURE(status)) { | 145 | if (ACPI_FAILURE(status)) { |
149 | acpi_os_printf | 146 | acpi_os_printf("[Could not get node by pathname]"); |
150 | ("report_method_error: Could not get node\n"); | ||
151 | return; | ||
152 | } | 147 | } |
153 | } | 148 | } |
154 | 149 | ||
155 | acpi_os_printf("%8s-%04d: *** Error: ", module_name, line_number); | ||
156 | acpi_ns_print_node_pathname(node, message); | 150 | acpi_ns_print_node_pathname(node, message); |
157 | acpi_os_printf(", %s\n", acpi_format_exception(method_status)); | 151 | acpi_os_printf(", %s\n", acpi_format_exception(method_status)); |
158 | } | 152 | } |
@@ -248,7 +242,7 @@ acpi_object_type acpi_ns_get_type(struct acpi_namespace_node * node) | |||
248 | ACPI_FUNCTION_TRACE("ns_get_type"); | 242 | ACPI_FUNCTION_TRACE("ns_get_type"); |
249 | 243 | ||
250 | if (!node) { | 244 | if (!node) { |
251 | ACPI_REPORT_WARNING(("ns_get_type: Null Node input pointer\n")); | 245 | ACPI_REPORT_WARNING(("Null Node parameter\n")); |
252 | return_UINT32(ACPI_TYPE_ANY); | 246 | return_UINT32(ACPI_TYPE_ANY); |
253 | } | 247 | } |
254 | 248 | ||
@@ -275,7 +269,7 @@ u32 acpi_ns_local(acpi_object_type type) | |||
275 | if (!acpi_ut_valid_object_type(type)) { | 269 | if (!acpi_ut_valid_object_type(type)) { |
276 | /* Type code out of range */ | 270 | /* Type code out of range */ |
277 | 271 | ||
278 | ACPI_REPORT_WARNING(("ns_local: Invalid Object Type\n")); | 272 | ACPI_REPORT_WARNING(("Invalid Object Type %X\n", type)); |
279 | return_UINT32(ACPI_NS_NORMAL); | 273 | return_UINT32(ACPI_NS_NORMAL); |
280 | } | 274 | } |
281 | 275 | ||
@@ -627,7 +621,7 @@ acpi_ns_externalize_name(u32 internal_name_length, | |||
627 | * with internal_name (invalid format). | 621 | * with internal_name (invalid format). |
628 | */ | 622 | */ |
629 | if (required_length > internal_name_length) { | 623 | if (required_length > internal_name_length) { |
630 | ACPI_REPORT_ERROR(("ns_externalize_name: Invalid internal name\n")); | 624 | ACPI_REPORT_ERROR(("Invalid internal name\n")); |
631 | return_ACPI_STATUS(AE_BAD_PATHNAME); | 625 | return_ACPI_STATUS(AE_BAD_PATHNAME); |
632 | } | 626 | } |
633 | 627 | ||
@@ -803,8 +797,7 @@ u32 acpi_ns_opens_scope(acpi_object_type type) | |||
803 | if (!acpi_ut_valid_object_type(type)) { | 797 | if (!acpi_ut_valid_object_type(type)) { |
804 | /* type code out of range */ | 798 | /* type code out of range */ |
805 | 799 | ||
806 | ACPI_REPORT_WARNING(("ns_opens_scope: Invalid Object Type %X\n", | 800 | ACPI_REPORT_WARNING(("Invalid Object Type %X\n", type)); |
807 | type)); | ||
808 | return_UINT32(ACPI_NS_NORMAL); | 801 | return_UINT32(ACPI_NS_NORMAL); |
809 | } | 802 | } |
810 | 803 | ||
diff --git a/drivers/acpi/namespace/nswalk.c b/drivers/acpi/namespace/nswalk.c index 5f164c0df33b..fcab1e784b81 100644 --- a/drivers/acpi/namespace/nswalk.c +++ b/drivers/acpi/namespace/nswalk.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 |
diff --git a/drivers/acpi/namespace/nsxfeval.c b/drivers/acpi/namespace/nsxfeval.c index 75b137a6a3c9..de13add43efc 100644 --- a/drivers/acpi/namespace/nsxfeval.c +++ b/drivers/acpi/namespace/nsxfeval.c | |||
@@ -6,7 +6,7 @@ | |||
6 | ******************************************************************************/ | 6 | ******************************************************************************/ |
7 | 7 | ||
8 | /* | 8 | /* |
9 | * Copyright (C) 2000 - 2005, R. Byron Moore | 9 | * Copyright (C) 2000 - 2006, R. Byron Moore |
10 | * All rights reserved. | 10 | * All rights reserved. |
11 | * | 11 | * |
12 | * Redistribution and use in source and binary forms, with or without | 12 | * Redistribution and use in source and binary forms, with or without |
@@ -112,8 +112,7 @@ acpi_evaluate_object_typed(acpi_handle handle, | |||
112 | if (return_buffer->length == 0) { | 112 | if (return_buffer->length == 0) { |
113 | /* Error because caller specifically asked for a return value */ | 113 | /* Error because caller specifically asked for a return value */ |
114 | 114 | ||
115 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "No return value\n")); | 115 | ACPI_REPORT_ERROR(("No return value\n")); |
116 | |||
117 | return_ACPI_STATUS(AE_NULL_OBJECT); | 116 | return_ACPI_STATUS(AE_NULL_OBJECT); |
118 | } | 117 | } |
119 | 118 | ||
@@ -125,11 +124,11 @@ acpi_evaluate_object_typed(acpi_handle handle, | |||
125 | 124 | ||
126 | /* Return object type does not match requested type */ | 125 | /* Return object type does not match requested type */ |
127 | 126 | ||
128 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 127 | ACPI_REPORT_ERROR(("Incorrect return type [%s] requested [%s]\n", |
129 | "Incorrect return type [%s] requested [%s]\n", | 128 | acpi_ut_get_type_name(((union acpi_object *) |
130 | acpi_ut_get_type_name(((union acpi_object *) | 129 | return_buffer->pointer)-> |
131 | return_buffer->pointer)->type), | 130 | type), |
132 | acpi_ut_get_type_name(return_type))); | 131 | acpi_ut_get_type_name(return_type))); |
133 | 132 | ||
134 | if (must_free) { | 133 | if (must_free) { |
135 | /* Caller used ACPI_ALLOCATE_BUFFER, free the return buffer */ | 134 | /* Caller used ACPI_ALLOCATE_BUFFER, free the return buffer */ |
@@ -236,11 +235,9 @@ acpi_evaluate_object(acpi_handle handle, | |||
236 | * qualified names above, this is an error | 235 | * qualified names above, this is an error |
237 | */ | 236 | */ |
238 | if (!pathname) { | 237 | if (!pathname) { |
239 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 238 | ACPI_REPORT_ERROR(("Both Handle and Pathname are NULL\n")); |
240 | "Both Handle and Pathname are NULL\n")); | ||
241 | } else { | 239 | } else { |
242 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 240 | ACPI_REPORT_ERROR(("Handle is NULL and Pathname is relative\n")); |
243 | "Handle is NULL and Pathname is relative\n")); | ||
244 | } | 241 | } |
245 | 242 | ||
246 | status = AE_BAD_PARAMETER; | 243 | status = AE_BAD_PARAMETER; |
diff --git a/drivers/acpi/namespace/nsxfname.c b/drivers/acpi/namespace/nsxfname.c index 6b5f8d4481d1..853e6d170c96 100644 --- a/drivers/acpi/namespace/nsxfname.c +++ b/drivers/acpi/namespace/nsxfname.c | |||
@@ -6,7 +6,7 @@ | |||
6 | *****************************************************************************/ | 6 | *****************************************************************************/ |
7 | 7 | ||
8 | /* | 8 | /* |
9 | * Copyright (C) 2000 - 2005, R. Byron Moore | 9 | * Copyright (C) 2000 - 2006, R. Byron Moore |
10 | * All rights reserved. | 10 | * All rights reserved. |
11 | * | 11 | * |
12 | * Redistribution and use in source and binary forms, with or without | 12 | * Redistribution and use in source and binary forms, with or without |
diff --git a/drivers/acpi/namespace/nsxfobj.c b/drivers/acpi/namespace/nsxfobj.c index 0856d42e6909..a0332595677a 100644 --- a/drivers/acpi/namespace/nsxfobj.c +++ b/drivers/acpi/namespace/nsxfobj.c | |||
@@ -6,7 +6,7 @@ | |||
6 | ******************************************************************************/ | 6 | ******************************************************************************/ |
7 | 7 | ||
8 | /* | 8 | /* |
9 | * Copyright (C) 2000 - 2005, R. Byron Moore | 9 | * Copyright (C) 2000 - 2006, R. Byron Moore |
10 | * All rights reserved. | 10 | * All rights reserved. |
11 | * | 11 | * |
12 | * Redistribution and use in source and binary forms, with or without | 12 | * Redistribution and use in source and binary forms, with or without |