diff options
Diffstat (limited to 'drivers/acpi/dispatcher/dsutils.c')
| -rw-r--r-- | drivers/acpi/dispatcher/dsutils.c | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/drivers/acpi/dispatcher/dsutils.c b/drivers/acpi/dispatcher/dsutils.c index 83ae1c1aa286..53356a591ac1 100644 --- a/drivers/acpi/dispatcher/dsutils.c +++ b/drivers/acpi/dispatcher/dsutils.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 |
| @@ -176,8 +176,8 @@ acpi_ds_is_result_used(union acpi_parse_object * op, | |||
| 176 | /* Must have both an Op and a Result Object */ | 176 | /* Must have both an Op and a Result Object */ |
| 177 | 177 | ||
| 178 | if (!op) { | 178 | if (!op) { |
| 179 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Null Op\n")); | 179 | ACPI_ERROR((AE_INFO, "Null Op")); |
| 180 | return_VALUE(TRUE); | 180 | return_UINT8(TRUE); |
| 181 | } | 181 | } |
| 182 | 182 | ||
| 183 | /* | 183 | /* |
| @@ -208,7 +208,7 @@ acpi_ds_is_result_used(union acpi_parse_object * op, | |||
| 208 | "At Method level, result of [%s] not used\n", | 208 | "At Method level, result of [%s] not used\n", |
| 209 | acpi_ps_get_opcode_name(op->common. | 209 | acpi_ps_get_opcode_name(op->common. |
| 210 | aml_opcode))); | 210 | aml_opcode))); |
| 211 | return_VALUE(FALSE); | 211 | return_UINT8(FALSE); |
| 212 | } | 212 | } |
| 213 | 213 | ||
| 214 | /* Get info on the parent. The root_op is AML_SCOPE */ | 214 | /* Get info on the parent. The root_op is AML_SCOPE */ |
| @@ -216,9 +216,8 @@ acpi_ds_is_result_used(union acpi_parse_object * op, | |||
| 216 | parent_info = | 216 | parent_info = |
| 217 | acpi_ps_get_opcode_info(op->common.parent->common.aml_opcode); | 217 | acpi_ps_get_opcode_info(op->common.parent->common.aml_opcode); |
| 218 | if (parent_info->class == AML_CLASS_UNKNOWN) { | 218 | if (parent_info->class == AML_CLASS_UNKNOWN) { |
| 219 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 219 | ACPI_ERROR((AE_INFO, "Unknown parent opcode Op=%p", op)); |
| 220 | "Unknown parent opcode. Op=%p\n", op)); | 220 | return_UINT8(FALSE); |
| 221 | return_VALUE(FALSE); | ||
| 222 | } | 221 | } |
| 223 | 222 | ||
| 224 | /* | 223 | /* |
| @@ -304,7 +303,7 @@ acpi_ds_is_result_used(union acpi_parse_object * op, | |||
| 304 | acpi_ps_get_opcode_name(op->common.parent->common. | 303 | acpi_ps_get_opcode_name(op->common.parent->common. |
| 305 | aml_opcode), op)); | 304 | aml_opcode), op)); |
| 306 | 305 | ||
| 307 | return_VALUE(TRUE); | 306 | return_UINT8(TRUE); |
| 308 | 307 | ||
| 309 | result_not_used: | 308 | result_not_used: |
| 310 | ACPI_DEBUG_PRINT((ACPI_DB_DISPATCH, | 309 | ACPI_DEBUG_PRINT((ACPI_DB_DISPATCH, |
| @@ -313,7 +312,7 @@ acpi_ds_is_result_used(union acpi_parse_object * op, | |||
| 313 | acpi_ps_get_opcode_name(op->common.parent->common. | 312 | acpi_ps_get_opcode_name(op->common.parent->common. |
| 314 | aml_opcode), op)); | 313 | aml_opcode), op)); |
| 315 | 314 | ||
| 316 | return_VALUE(FALSE); | 315 | return_UINT8(FALSE); |
| 317 | } | 316 | } |
| 318 | 317 | ||
| 319 | /******************************************************************************* | 318 | /******************************************************************************* |
| @@ -344,7 +343,7 @@ acpi_ds_delete_result_if_not_used(union acpi_parse_object *op, | |||
| 344 | ACPI_FUNCTION_TRACE_PTR("ds_delete_result_if_not_used", result_obj); | 343 | ACPI_FUNCTION_TRACE_PTR("ds_delete_result_if_not_used", result_obj); |
| 345 | 344 | ||
| 346 | if (!op) { | 345 | if (!op) { |
| 347 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Null Op\n")); | 346 | ACPI_ERROR((AE_INFO, "Null Op")); |
| 348 | return_VOID; | 347 | return_VOID; |
| 349 | } | 348 | } |
| 350 | 349 | ||
| @@ -567,7 +566,7 @@ acpi_ds_create_operand(struct acpi_walk_state *walk_state, | |||
| 567 | } | 566 | } |
| 568 | 567 | ||
| 569 | if (ACPI_FAILURE(status)) { | 568 | if (ACPI_FAILURE(status)) { |
| 570 | ACPI_REPORT_NSERROR(name_string, status); | 569 | ACPI_ERROR_NAMESPACE(name_string, status); |
| 571 | } | 570 | } |
| 572 | } | 571 | } |
| 573 | 572 | ||
| @@ -616,7 +615,7 @@ acpi_ds_create_operand(struct acpi_walk_state *walk_state, | |||
| 616 | 615 | ||
| 617 | if (op_info->flags & AML_HAS_RETVAL) { | 616 | if (op_info->flags & AML_HAS_RETVAL) { |
| 618 | ACPI_DEBUG_PRINT((ACPI_DB_DISPATCH, | 617 | ACPI_DEBUG_PRINT((ACPI_DB_DISPATCH, |
| 619 | "Argument previously created, already stacked \n")); | 618 | "Argument previously created, already stacked\n")); |
| 620 | 619 | ||
| 621 | ACPI_DEBUGGER_EXEC(acpi_db_display_argument_object | 620 | ACPI_DEBUGGER_EXEC(acpi_db_display_argument_object |
| 622 | (walk_state-> | 621 | (walk_state-> |
| @@ -635,10 +634,8 @@ acpi_ds_create_operand(struct acpi_walk_state *walk_state, | |||
| 635 | * Only error is underflow, and this indicates | 634 | * Only error is underflow, and this indicates |
| 636 | * a missing or null operand! | 635 | * a missing or null operand! |
| 637 | */ | 636 | */ |
| 638 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 637 | ACPI_EXCEPTION((AE_INFO, status, |
| 639 | "Missing or null operand, %s\n", | 638 | "Missing or null operand")); |
| 640 | acpi_format_exception | ||
| 641 | (status))); | ||
| 642 | return_ACPI_STATUS(status); | 639 | return_ACPI_STATUS(status); |
| 643 | } | 640 | } |
| 644 | } else { | 641 | } else { |
| @@ -730,7 +727,7 @@ acpi_ds_create_operands(struct acpi_walk_state *walk_state, | |||
| 730 | */ | 727 | */ |
| 731 | (void)acpi_ds_obj_stack_pop_and_delete(arg_count, walk_state); | 728 | (void)acpi_ds_obj_stack_pop_and_delete(arg_count, walk_state); |
| 732 | 729 | ||
| 733 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "While creating Arg %d - %s\n", | 730 | ACPI_EXCEPTION((AE_INFO, status, "While creating Arg %d", |
| 734 | (arg_count + 1), acpi_format_exception(status))); | 731 | (arg_count + 1))); |
| 735 | return_ACPI_STATUS(status); | 732 | return_ACPI_STATUS(status); |
| 736 | } | 733 | } |
