diff options
Diffstat (limited to 'drivers/acpi/executer/exoparg3.c')
-rw-r--r-- | drivers/acpi/executer/exoparg3.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/acpi/executer/exoparg3.c b/drivers/acpi/executer/exoparg3.c index 483365777670..6a3a883cb8a3 100644 --- a/drivers/acpi/executer/exoparg3.c +++ b/drivers/acpi/executer/exoparg3.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 |
@@ -119,7 +119,8 @@ acpi_status acpi_ex_opcode_3A_0T_0R(struct acpi_walk_state *walk_state) | |||
119 | 119 | ||
120 | default: | 120 | default: |
121 | 121 | ||
122 | ACPI_REPORT_ERROR(("acpi_ex_opcode_3A_0T_0R: Unknown opcode %X\n", walk_state->opcode)); | 122 | ACPI_ERROR((AE_INFO, "Unknown AML opcode %X", |
123 | walk_state->opcode)); | ||
123 | status = AE_AML_BAD_OPCODE; | 124 | status = AE_AML_BAD_OPCODE; |
124 | goto cleanup; | 125 | goto cleanup; |
125 | } | 126 | } |
@@ -223,8 +224,8 @@ acpi_status acpi_ex_opcode_3A_1T_1R(struct acpi_walk_state *walk_state) | |||
223 | goto cleanup; | 224 | goto cleanup; |
224 | } | 225 | } |
225 | 226 | ||
226 | if (length > 0) { | 227 | if (buffer) { |
227 | /* Copy the portion requested */ | 228 | /* We have a buffer, copy the portion requested */ |
228 | 229 | ||
229 | ACPI_MEMCPY(buffer, operand[0]->string.pointer + index, | 230 | ACPI_MEMCPY(buffer, operand[0]->string.pointer + index, |
230 | length); | 231 | length); |
@@ -242,7 +243,8 @@ acpi_status acpi_ex_opcode_3A_1T_1R(struct acpi_walk_state *walk_state) | |||
242 | 243 | ||
243 | default: | 244 | default: |
244 | 245 | ||
245 | ACPI_REPORT_ERROR(("acpi_ex_opcode_3A_0T_0R: Unknown opcode %X\n", walk_state->opcode)); | 246 | ACPI_ERROR((AE_INFO, "Unknown AML opcode %X", |
247 | walk_state->opcode)); | ||
246 | status = AE_AML_BAD_OPCODE; | 248 | status = AE_AML_BAD_OPCODE; |
247 | goto cleanup; | 249 | goto cleanup; |
248 | } | 250 | } |