diff options
Diffstat (limited to 'drivers/acpi/executer/exoparg2.c')
-rw-r--r-- | drivers/acpi/executer/exoparg2.c | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/drivers/acpi/executer/exoparg2.c b/drivers/acpi/executer/exoparg2.c index d8472842c1fd..7c59dda40946 100644 --- a/drivers/acpi/executer/exoparg2.c +++ b/drivers/acpi/executer/exoparg2.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 |
@@ -111,9 +111,7 @@ acpi_status acpi_ex_opcode_2A_0T_0R(struct acpi_walk_state *walk_state) | |||
111 | /* Are notifies allowed on this object? */ | 111 | /* Are notifies allowed on this object? */ |
112 | 112 | ||
113 | if (!acpi_ev_is_notify_object(node)) { | 113 | if (!acpi_ev_is_notify_object(node)) { |
114 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 114 | ACPI_REPORT_ERROR(("Unexpected notify object type [%s]\n", acpi_ut_get_type_name(node->type))); |
115 | "Unexpected notify object type [%s]\n", | ||
116 | acpi_ut_get_type_name(node->type))); | ||
117 | 115 | ||
118 | status = AE_AML_OPERAND_TYPE; | 116 | status = AE_AML_OPERAND_TYPE; |
119 | break; | 117 | break; |
@@ -157,7 +155,8 @@ acpi_status acpi_ex_opcode_2A_0T_0R(struct acpi_walk_state *walk_state) | |||
157 | 155 | ||
158 | default: | 156 | default: |
159 | 157 | ||
160 | ACPI_REPORT_ERROR(("acpi_ex_opcode_2A_0T_0R: Unknown opcode %X\n", walk_state->opcode)); | 158 | ACPI_REPORT_ERROR(("Unknown AML opcode %X\n", |
159 | walk_state->opcode)); | ||
161 | status = AE_AML_BAD_OPCODE; | 160 | status = AE_AML_BAD_OPCODE; |
162 | } | 161 | } |
163 | 162 | ||
@@ -221,7 +220,8 @@ acpi_status acpi_ex_opcode_2A_2T_1R(struct acpi_walk_state *walk_state) | |||
221 | 220 | ||
222 | default: | 221 | default: |
223 | 222 | ||
224 | ACPI_REPORT_ERROR(("acpi_ex_opcode_2A_2T_1R: Unknown opcode %X\n", walk_state->opcode)); | 223 | ACPI_REPORT_ERROR(("Unknown AML opcode %X\n", |
224 | walk_state->opcode)); | ||
225 | status = AE_AML_BAD_OPCODE; | 225 | status = AE_AML_BAD_OPCODE; |
226 | goto cleanup; | 226 | goto cleanup; |
227 | } | 227 | } |
@@ -389,10 +389,7 @@ acpi_status acpi_ex_opcode_2A_1T_1R(struct acpi_walk_state *walk_state) | |||
389 | /* Object to be indexed is a Package */ | 389 | /* Object to be indexed is a Package */ |
390 | 390 | ||
391 | if (index >= operand[0]->package.count) { | 391 | if (index >= operand[0]->package.count) { |
392 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 392 | ACPI_REPORT_ERROR(("Index value (%X%8.8X) beyond package end (%X)\n", ACPI_FORMAT_UINT64(index), operand[0]->package.count)); |
393 | "Index value (%X%8.8X) beyond package end (%X)\n", | ||
394 | ACPI_FORMAT_UINT64(index), | ||
395 | operand[0]->package.count)); | ||
396 | status = AE_AML_PACKAGE_LIMIT; | 393 | status = AE_AML_PACKAGE_LIMIT; |
397 | goto cleanup; | 394 | goto cleanup; |
398 | } | 395 | } |
@@ -405,10 +402,7 @@ acpi_status acpi_ex_opcode_2A_1T_1R(struct acpi_walk_state *walk_state) | |||
405 | /* Object to be indexed is a Buffer/String */ | 402 | /* Object to be indexed is a Buffer/String */ |
406 | 403 | ||
407 | if (index >= operand[0]->buffer.length) { | 404 | if (index >= operand[0]->buffer.length) { |
408 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 405 | ACPI_REPORT_ERROR(("Index value (%X%8.8X) beyond end of buffer (%X)\n", ACPI_FORMAT_UINT64(index), operand[0]->buffer.length)); |
409 | "Index value (%X%8.8X) beyond end of buffer (%X)\n", | ||
410 | ACPI_FORMAT_UINT64(index), | ||
411 | operand[0]->buffer.length)); | ||
412 | status = AE_AML_BUFFER_LIMIT; | 406 | status = AE_AML_BUFFER_LIMIT; |
413 | goto cleanup; | 407 | goto cleanup; |
414 | } | 408 | } |
@@ -440,7 +434,8 @@ acpi_status acpi_ex_opcode_2A_1T_1R(struct acpi_walk_state *walk_state) | |||
440 | 434 | ||
441 | default: | 435 | default: |
442 | 436 | ||
443 | ACPI_REPORT_ERROR(("acpi_ex_opcode_2A_1T_1R: Unknown opcode %X\n", walk_state->opcode)); | 437 | ACPI_REPORT_ERROR(("Unknown AML opcode %X\n", |
438 | walk_state->opcode)); | ||
444 | status = AE_AML_BAD_OPCODE; | 439 | status = AE_AML_BAD_OPCODE; |
445 | break; | 440 | break; |
446 | } | 441 | } |
@@ -544,7 +539,8 @@ acpi_status acpi_ex_opcode_2A_0T_1R(struct acpi_walk_state *walk_state) | |||
544 | 539 | ||
545 | default: | 540 | default: |
546 | 541 | ||
547 | ACPI_REPORT_ERROR(("acpi_ex_opcode_2A_0T_1R: Unknown opcode %X\n", walk_state->opcode)); | 542 | ACPI_REPORT_ERROR(("Unknown AML opcode %X\n", |
543 | walk_state->opcode)); | ||
548 | status = AE_AML_BAD_OPCODE; | 544 | status = AE_AML_BAD_OPCODE; |
549 | goto cleanup; | 545 | goto cleanup; |
550 | } | 546 | } |