diff options
Diffstat (limited to 'drivers/acpi/executer/exresolv.c')
-rw-r--r-- | drivers/acpi/executer/exresolv.c | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/drivers/acpi/executer/exresolv.c b/drivers/acpi/executer/exresolv.c index 97eecbd3242d..ae2d2da00844 100644 --- a/drivers/acpi/executer/exresolv.c +++ b/drivers/acpi/executer/exresolv.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 |
@@ -81,7 +81,7 @@ acpi_ex_resolve_to_value(union acpi_operand_object **stack_ptr, | |||
81 | ACPI_FUNCTION_TRACE_PTR("ex_resolve_to_value", stack_ptr); | 81 | ACPI_FUNCTION_TRACE_PTR("ex_resolve_to_value", stack_ptr); |
82 | 82 | ||
83 | if (!stack_ptr || !*stack_ptr) { | 83 | if (!stack_ptr || !*stack_ptr) { |
84 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Internal - null pointer\n")); | 84 | ACPI_REPORT_ERROR(("Internal - null pointer\n")); |
85 | return_ACPI_STATUS(AE_AML_NO_OPERAND); | 85 | return_ACPI_STATUS(AE_AML_NO_OPERAND); |
86 | } | 86 | } |
87 | 87 | ||
@@ -97,8 +97,7 @@ acpi_ex_resolve_to_value(union acpi_operand_object **stack_ptr, | |||
97 | } | 97 | } |
98 | 98 | ||
99 | if (!*stack_ptr) { | 99 | if (!*stack_ptr) { |
100 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 100 | ACPI_REPORT_ERROR(("Internal - null pointer\n")); |
101 | "Internal - null pointer\n")); | ||
102 | return_ACPI_STATUS(AE_AML_NO_OPERAND); | 101 | return_ACPI_STATUS(AE_AML_NO_OPERAND); |
103 | } | 102 | } |
104 | } | 103 | } |
@@ -228,9 +227,7 @@ acpi_ex_resolve_object_to_value(union acpi_operand_object **stack_ptr, | |||
228 | * A NULL object descriptor means an unitialized element of | 227 | * A NULL object descriptor means an unitialized element of |
229 | * the package, can't dereference it | 228 | * the package, can't dereference it |
230 | */ | 229 | */ |
231 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 230 | ACPI_REPORT_ERROR(("Attempt to deref an Index to NULL pkg element Idx=%p\n", stack_desc)); |
232 | "Attempt to deref an Index to NULL pkg element Idx=%p\n", | ||
233 | stack_desc)); | ||
234 | status = AE_AML_UNINITIALIZED_ELEMENT; | 231 | status = AE_AML_UNINITIALIZED_ELEMENT; |
235 | } | 232 | } |
236 | break; | 233 | break; |
@@ -239,7 +236,7 @@ acpi_ex_resolve_object_to_value(union acpi_operand_object **stack_ptr, | |||
239 | 236 | ||
240 | /* Invalid reference object */ | 237 | /* Invalid reference object */ |
241 | 238 | ||
242 | ACPI_REPORT_ERROR(("During resolve, Unknown target_type %X in Index/Reference obj %p\n", stack_desc->reference.target_type, stack_desc)); | 239 | ACPI_REPORT_ERROR(("Unknown target_type %X in Index/Reference obj %p\n", stack_desc->reference.target_type, stack_desc)); |
243 | status = AE_AML_INTERNAL; | 240 | status = AE_AML_INTERNAL; |
244 | break; | 241 | break; |
245 | } | 242 | } |
@@ -264,7 +261,7 @@ acpi_ex_resolve_object_to_value(union acpi_operand_object **stack_ptr, | |||
264 | 261 | ||
265 | default: | 262 | default: |
266 | 263 | ||
267 | ACPI_REPORT_ERROR(("During resolve, Unknown Reference opcode %X (%s) in %p\n", opcode, acpi_ps_get_opcode_name(opcode), stack_desc)); | 264 | ACPI_REPORT_ERROR(("Unknown Reference opcode %X (%s) in %p\n", opcode, acpi_ps_get_opcode_name(opcode), stack_desc)); |
268 | status = AE_AML_INTERNAL; | 265 | status = AE_AML_INTERNAL; |
269 | break; | 266 | break; |
270 | } | 267 | } |
@@ -386,7 +383,10 @@ acpi_ex_resolve_multiple(struct acpi_walk_state *walk_state, | |||
386 | 383 | ||
387 | if (ACPI_GET_DESCRIPTOR_TYPE(node) != | 384 | if (ACPI_GET_DESCRIPTOR_TYPE(node) != |
388 | ACPI_DESC_TYPE_NAMED) { | 385 | ACPI_DESC_TYPE_NAMED) { |
389 | ACPI_REPORT_ERROR(("acpi_ex_resolve_multiple: Not a NS node %p [%s]\n", node, acpi_ut_get_descriptor_name(node))); | 386 | ACPI_REPORT_ERROR(("Not a NS node %p [%s]\n", |
387 | node, | ||
388 | acpi_ut_get_descriptor_name | ||
389 | (node))); | ||
390 | return_ACPI_STATUS(AE_AML_INTERNAL); | 390 | return_ACPI_STATUS(AE_AML_INTERNAL); |
391 | } | 391 | } |
392 | 392 | ||
@@ -442,7 +442,10 @@ acpi_ex_resolve_multiple(struct acpi_walk_state *walk_state, | |||
442 | 442 | ||
443 | if (ACPI_GET_DESCRIPTOR_TYPE(node) != | 443 | if (ACPI_GET_DESCRIPTOR_TYPE(node) != |
444 | ACPI_DESC_TYPE_NAMED) { | 444 | ACPI_DESC_TYPE_NAMED) { |
445 | ACPI_REPORT_ERROR(("acpi_ex_resolve_multiple: Not a NS node %p [%s]\n", node, acpi_ut_get_descriptor_name(node))); | 445 | ACPI_REPORT_ERROR(("Not a NS node %p [%s]\n", |
446 | node, | ||
447 | acpi_ut_get_descriptor_name | ||
448 | (node))); | ||
446 | return_ACPI_STATUS(AE_AML_INTERNAL); | 449 | return_ACPI_STATUS(AE_AML_INTERNAL); |
447 | } | 450 | } |
448 | 451 | ||
@@ -511,7 +514,8 @@ acpi_ex_resolve_multiple(struct acpi_walk_state *walk_state, | |||
511 | 514 | ||
512 | default: | 515 | default: |
513 | 516 | ||
514 | ACPI_REPORT_ERROR(("acpi_ex_resolve_multiple: Unknown Reference subtype %X\n", obj_desc->reference.opcode)); | 517 | ACPI_REPORT_ERROR(("Unknown Reference subtype %X\n", |
518 | obj_desc->reference.opcode)); | ||
515 | return_ACPI_STATUS(AE_AML_INTERNAL); | 519 | return_ACPI_STATUS(AE_AML_INTERNAL); |
516 | } | 520 | } |
517 | } | 521 | } |