diff options
Diffstat (limited to 'drivers/acpi/utilities/utobject.c')
-rw-r--r-- | drivers/acpi/utilities/utobject.c | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/drivers/acpi/utilities/utobject.c b/drivers/acpi/utilities/utobject.c index 3015e154005..1b6b2157780 100644 --- a/drivers/acpi/utilities/utobject.c +++ b/drivers/acpi/utilities/utobject.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 |
@@ -177,7 +177,8 @@ union acpi_operand_object *acpi_ut_create_buffer_object(acpi_size buffer_size) | |||
177 | 177 | ||
178 | buffer = ACPI_MEM_CALLOCATE(buffer_size); | 178 | buffer = ACPI_MEM_CALLOCATE(buffer_size); |
179 | if (!buffer) { | 179 | if (!buffer) { |
180 | ACPI_REPORT_ERROR(("create_buffer: could not allocate size %X\n", (u32) buffer_size)); | 180 | ACPI_REPORT_ERROR(("Could not allocate size %X\n", |
181 | (u32) buffer_size)); | ||
181 | acpi_ut_remove_reference(buffer_desc); | 182 | acpi_ut_remove_reference(buffer_desc); |
182 | return_PTR(NULL); | 183 | return_PTR(NULL); |
183 | } | 184 | } |
@@ -228,7 +229,8 @@ union acpi_operand_object *acpi_ut_create_string_object(acpi_size string_size) | |||
228 | */ | 229 | */ |
229 | string = ACPI_MEM_CALLOCATE(string_size + 1); | 230 | string = ACPI_MEM_CALLOCATE(string_size + 1); |
230 | if (!string) { | 231 | if (!string) { |
231 | ACPI_REPORT_ERROR(("create_string: could not allocate size %X\n", (u32) string_size)); | 232 | ACPI_REPORT_ERROR(("Could not allocate size %X\n", |
233 | (u32) string_size)); | ||
232 | acpi_ut_remove_reference(string_desc); | 234 | acpi_ut_remove_reference(string_desc); |
233 | return_PTR(NULL); | 235 | return_PTR(NULL); |
234 | } | 236 | } |
@@ -310,7 +312,7 @@ void *acpi_ut_allocate_object_desc_dbg(char *module_name, | |||
310 | 312 | ||
311 | object = acpi_os_acquire_object(acpi_gbl_operand_cache); | 313 | object = acpi_os_acquire_object(acpi_gbl_operand_cache); |
312 | if (!object) { | 314 | if (!object) { |
313 | _ACPI_REPORT_ERROR(module_name, line_number, component_id, | 315 | _ACPI_REPORT_ERROR(module_name, line_number, |
314 | ("Could not allocate an object descriptor\n")); | 316 | ("Could not allocate an object descriptor\n")); |
315 | 317 | ||
316 | return_PTR(NULL); | 318 | return_PTR(NULL); |
@@ -345,9 +347,9 @@ void acpi_ut_delete_object_desc(union acpi_operand_object *object) | |||
345 | /* Object must be an union acpi_operand_object */ | 347 | /* Object must be an union acpi_operand_object */ |
346 | 348 | ||
347 | if (ACPI_GET_DESCRIPTOR_TYPE(object) != ACPI_DESC_TYPE_OPERAND) { | 349 | if (ACPI_GET_DESCRIPTOR_TYPE(object) != ACPI_DESC_TYPE_OPERAND) { |
348 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 350 | ACPI_REPORT_ERROR(("%p is not an ACPI Operand object [%s]\n", |
349 | "%p is not an ACPI Operand object [%s]\n", | 351 | object, |
350 | object, acpi_ut_get_descriptor_name(object))); | 352 | acpi_ut_get_descriptor_name(object))); |
351 | return_VOID; | 353 | return_VOID; |
352 | } | 354 | } |
353 | 355 | ||
@@ -449,10 +451,7 @@ acpi_ut_get_simple_object_size(union acpi_operand_object *internal_object, | |||
449 | * Notably, Locals and Args are not supported, but this may be | 451 | * Notably, Locals and Args are not supported, but this may be |
450 | * required eventually. | 452 | * required eventually. |
451 | */ | 453 | */ |
452 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 454 | ACPI_REPORT_ERROR(("Unsupported Reference opcode=%X in object %p\n", internal_object->reference.opcode, internal_object)); |
453 | "Unsupported Reference opcode=%X in object %p\n", | ||
454 | internal_object->reference.opcode, | ||
455 | internal_object)); | ||
456 | status = AE_TYPE; | 455 | status = AE_TYPE; |
457 | break; | 456 | break; |
458 | } | 457 | } |
@@ -460,10 +459,9 @@ acpi_ut_get_simple_object_size(union acpi_operand_object *internal_object, | |||
460 | 459 | ||
461 | default: | 460 | default: |
462 | 461 | ||
463 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 462 | ACPI_REPORT_ERROR(("Unsupported type=%X in object %p\n", |
464 | "Unsupported type=%X in object %p\n", | 463 | ACPI_GET_OBJECT_TYPE(internal_object), |
465 | ACPI_GET_OBJECT_TYPE(internal_object), | 464 | internal_object)); |
466 | internal_object)); | ||
467 | status = AE_TYPE; | 465 | status = AE_TYPE; |
468 | break; | 466 | break; |
469 | } | 467 | } |