[ACPI] ACPICA 20060113

Added 2006 copyright.

At SuSE's suggestion, enabled all error messages
without enabling function tracing, ie with CONFIG_ACPI_DEBUG=n

Replaced all instances of the ACPI_DEBUG_PRINT macro invoked at
the ACPI_DB_ERROR and ACPI_DB_WARN debug levels with
the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros,
respectively. This preserves all error and warning messages
in the non-debug version of the ACPICA code (this has been
referred to as the "debug lite" option.) Over 200 cases
were converted to create a total of over 380 error/warning
messages across the ACPICA code. This increases the code
and data size of the default non-debug version by about 13K.
Added ACPI_NO_ERROR_MESSAGES flag to enable deleting all messages.
The size of the debug version remains about the same.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by Bob Moore and committed by Len Brown 4a90c7e8 3c5c3638

+662 -1027
+4 -5
drivers/acpi/dispatcher/dsfield.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 293 + (acpi_integer) arg->common.value.size; 294 295 if (position > ACPI_UINT32_MAX) { 296 - ACPI_REPORT_ERROR(("Field [%4.4s] bit offset too large (> 0xFFFFFFFF)\n", (char *)&info->field_node->name)); 297 return_ACPI_STATUS(AE_SUPPORT); 298 } 299 ··· 302 303 default: 304 305 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 306 - "Invalid opcode in field list: %X\n", 307 - arg->common.aml_opcode)); 308 return_ACPI_STATUS(AE_AML_BAD_OPCODE); 309 } 310
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 293 + (acpi_integer) arg->common.value.size; 294 295 if (position > ACPI_UINT32_MAX) { 296 + ACPI_REPORT_ERROR(("Field [%4.4s] bit offset too large (> 0xFFFFFFFF)\n", ACPI_CAST_PTR(char, &info->field_node->name))); 297 return_ACPI_STATUS(AE_SUPPORT); 298 } 299 ··· 302 303 default: 304 305 + ACPI_REPORT_ERROR(("Invalid opcode in field list: %X\n", 306 + arg->common.aml_opcode)); 307 return_ACPI_STATUS(AE_AML_BAD_OPCODE); 308 } 309
+6 -14
drivers/acpi/dispatcher/dsinit.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 84 acpi_object_type type; 85 acpi_status status; 86 87 - ACPI_FUNCTION_NAME("ds_init_one_object"); 88 89 /* 90 * We are only interested in NS nodes owned by the table that ··· 105 106 status = acpi_ds_initialize_region(obj_handle); 107 if (ACPI_FAILURE(status)) { 108 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 109 - "Region %p [%4.4s] - Init failure, %s\n", 110 - obj_handle, 111 - acpi_ut_get_node_name(obj_handle), 112 - acpi_format_exception(status))); 113 } 114 115 info->op_region_count++; ··· 144 */ 145 status = acpi_ds_parse_method(obj_handle); 146 if (ACPI_FAILURE(status)) { 147 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 148 - "\n+Method %p [%4.4s] - parse failure, %s\n", 149 - obj_handle, 150 - acpi_ut_get_node_name(obj_handle), 151 - acpi_format_exception(status))); 152 153 /* This parse failed, but we will continue parsing more methods */ 154 } ··· 206 status = acpi_walk_namespace(ACPI_TYPE_ANY, start_node, ACPI_UINT32_MAX, 207 acpi_ds_init_one_object, &info, NULL); 208 if (ACPI_FAILURE(status)) { 209 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "walk_namespace failed, %s\n", 210 - acpi_format_exception(status))); 211 } 212 213 ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT,
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 84 acpi_object_type type; 85 acpi_status status; 86 87 + ACPI_FUNCTION_ENTRY(); 88 89 /* 90 * We are only interested in NS nodes owned by the table that ··· 105 106 status = acpi_ds_initialize_region(obj_handle); 107 if (ACPI_FAILURE(status)) { 108 + ACPI_REPORT_ERROR(("Region %p [%4.4s] - Init failure, %s\n", obj_handle, acpi_ut_get_node_name(obj_handle), acpi_format_exception(status))); 109 } 110 111 info->op_region_count++; ··· 148 */ 149 status = acpi_ds_parse_method(obj_handle); 150 if (ACPI_FAILURE(status)) { 151 + ACPI_REPORT_ERROR(("\n+Method %p [%4.4s] - parse failure, %s\n", obj_handle, acpi_ut_get_node_name(obj_handle), acpi_format_exception(status))); 152 153 /* This parse failed, but we will continue parsing more methods */ 154 } ··· 214 status = acpi_walk_namespace(ACPI_TYPE_ANY, start_node, ACPI_UINT32_MAX, 215 acpi_ds_init_one_object, &info, NULL); 216 if (ACPI_FAILURE(status)) { 217 + ACPI_REPORT_ERROR(("walk_namespace failed, %s\n", 218 + acpi_format_exception(status))); 219 } 220 221 ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT,
+1 -1
drivers/acpi/dispatcher/dsmethod.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+9 -19
drivers/acpi/dispatcher/dsmthdat.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 260 case AML_LOCAL_OP: 261 262 if (index > ACPI_METHOD_MAX_LOCAL) { 263 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 264 - "Local index %d is invalid (max %d)\n", 265 - index, ACPI_METHOD_MAX_LOCAL)); 266 return_ACPI_STATUS(AE_AML_INVALID_INDEX); 267 } 268 ··· 272 case AML_ARG_OP: 273 274 if (index > ACPI_METHOD_MAX_ARG) { 275 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 276 - "Arg index %d is invalid (max %d)\n", 277 - index, ACPI_METHOD_MAX_ARG)); 278 return_ACPI_STATUS(AE_AML_INVALID_INDEX); 279 } 280 ··· 283 break; 284 285 default: 286 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Opcode %d is invalid\n", 287 - opcode)); 288 return_ACPI_STATUS(AE_AML_BAD_OPCODE); 289 } 290 ··· 374 /* Validate the object descriptor */ 375 376 if (!dest_desc) { 377 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 378 - "Null object descriptor pointer\n")); 379 return_ACPI_STATUS(AE_BAD_PARAMETER); 380 } 381 ··· 419 switch (opcode) { 420 case AML_ARG_OP: 421 422 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 423 - "Uninitialized Arg[%d] at node %p\n", 424 - index, node)); 425 426 return_ACPI_STATUS(AE_AML_UNINITIALIZED_ARG); 427 428 case AML_LOCAL_OP: 429 430 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 431 - "Uninitialized Local[%d] at node %p\n", 432 - index, node)); 433 434 return_ACPI_STATUS(AE_AML_UNINITIALIZED_LOCAL); 435 436 default: 437 - ACPI_REPORT_ERROR(("Not Arg/Local opcode: %X\n", 438 - opcode)); 439 return_ACPI_STATUS(AE_AML_INTERNAL); 440 } 441 }
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 260 case AML_LOCAL_OP: 261 262 if (index > ACPI_METHOD_MAX_LOCAL) { 263 + ACPI_REPORT_ERROR(("Local index %d is invalid (max %d)\n", index, ACPI_METHOD_MAX_LOCAL)); 264 return_ACPI_STATUS(AE_AML_INVALID_INDEX); 265 } 266 ··· 274 case AML_ARG_OP: 275 276 if (index > ACPI_METHOD_MAX_ARG) { 277 + ACPI_REPORT_ERROR(("Arg index %d is invalid (max %d)\n", 278 + index, ACPI_METHOD_MAX_ARG)); 279 return_ACPI_STATUS(AE_AML_INVALID_INDEX); 280 } 281 ··· 286 break; 287 288 default: 289 + ACPI_REPORT_ERROR(("Opcode %d is invalid\n", opcode)); 290 return_ACPI_STATUS(AE_AML_BAD_OPCODE); 291 } 292 ··· 378 /* Validate the object descriptor */ 379 380 if (!dest_desc) { 381 + ACPI_REPORT_ERROR(("Null object descriptor pointer\n")); 382 return_ACPI_STATUS(AE_BAD_PARAMETER); 383 } 384 ··· 424 switch (opcode) { 425 case AML_ARG_OP: 426 427 + ACPI_REPORT_ERROR(("Uninitialized Arg[%d] at node %p\n", index, node)); 428 429 return_ACPI_STATUS(AE_AML_UNINITIALIZED_ARG); 430 431 case AML_LOCAL_OP: 432 433 + ACPI_REPORT_ERROR(("Uninitialized Local[%d] at node %p\n", index, node)); 434 435 return_ACPI_STATUS(AE_AML_UNINITIALIZED_LOCAL); 436 437 default: 438 + ACPI_REPORT_ERROR(("Not a Arg/Local opcode: %X\n", opcode)); 439 return_ACPI_STATUS(AE_AML_INTERNAL); 440 } 441 }
+7 -14
drivers/acpi/dispatcher/dsobject.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 214 byte_list = arg->named.next; 215 if (byte_list) { 216 if (byte_list->common.aml_opcode != AML_INT_BYTELIST_OP) { 217 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 218 - "Expecting bytelist, got AML opcode %X in op %p\n", 219 - byte_list->common.aml_opcode, 220 - byte_list)); 221 222 acpi_ut_remove_reference(obj_desc); 223 return (AE_TYPE); ··· 540 541 default: 542 543 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 544 - "Unknown constant opcode %X\n", 545 - opcode)); 546 status = AE_AML_OPERAND_TYPE; 547 break; 548 } ··· 555 break; 556 557 default: 558 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 559 - "Unknown Integer type %X\n", 560 - op_info->type)); 561 status = AE_AML_OPERAND_TYPE; 562 break; 563 } ··· 634 635 default: 636 637 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 638 - "Unimplemented data type: %X\n", 639 - ACPI_GET_OBJECT_TYPE(obj_desc))); 640 641 status = AE_AML_OPERAND_TYPE; 642 break;
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 214 byte_list = arg->named.next; 215 if (byte_list) { 216 if (byte_list->common.aml_opcode != AML_INT_BYTELIST_OP) { 217 + ACPI_REPORT_ERROR(("Expecting bytelist, got AML opcode %X in op %p\n", byte_list->common.aml_opcode, byte_list)); 218 219 acpi_ut_remove_reference(obj_desc); 220 return (AE_TYPE); ··· 543 544 default: 545 546 + ACPI_REPORT_ERROR(("Unknown constant opcode %X\n", opcode)); 547 status = AE_AML_OPERAND_TYPE; 548 break; 549 } ··· 560 break; 561 562 default: 563 + ACPI_REPORT_ERROR(("Unknown Integer type %X\n", 564 + op_info->type)); 565 status = AE_AML_OPERAND_TYPE; 566 break; 567 } ··· 640 641 default: 642 643 + ACPI_REPORT_ERROR(("Unimplemented data type: %X\n", 644 + ACPI_GET_OBJECT_TYPE(obj_desc))); 645 646 status = AE_AML_OPERAND_TYPE; 647 break;
+15 -26
drivers/acpi/dispatcher/dsopcode.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 413 /* Host object must be a Buffer */ 414 415 if (ACPI_GET_OBJECT_TYPE(buffer_desc) != ACPI_TYPE_BUFFER) { 416 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 417 - "Target of Create Field is not a Buffer object - %s\n", 418 - acpi_ut_get_object_type_name(buffer_desc))); 419 420 status = AE_AML_OPERAND_TYPE; 421 goto cleanup; ··· 425 * after resolution in acpi_ex_resolve_operands(). 426 */ 427 if (ACPI_GET_DESCRIPTOR_TYPE(result_desc) != ACPI_DESC_TYPE_NAMED) { 428 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 429 - "(%s) destination not a NS Node [%s]\n", 430 - acpi_ps_get_opcode_name(aml_opcode), 431 - acpi_ut_get_descriptor_name(result_desc))); 432 433 status = AE_AML_OPERAND_TYPE; 434 goto cleanup; ··· 450 /* Must have a valid (>0) bit count */ 451 452 if (bit_count == 0) { 453 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 454 - "Attempt to create_field of length 0\n")); 455 status = AE_AML_OPERAND_VALUE; 456 goto cleanup; 457 } ··· 503 504 default: 505 506 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 507 - "Unknown field creation opcode %02x\n", 508 - aml_opcode)); 509 status = AE_AML_BAD_OPCODE; 510 goto cleanup; 511 } ··· 512 /* Entire field must fit within the current length of the buffer */ 513 514 if ((bit_offset + bit_count) > (8 * (u32) buffer_desc->buffer.length)) { 515 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 516 - "Field [%4.4s] size %d exceeds Buffer [%4.4s] size %d (bits)\n", 517 - acpi_ut_get_node_name(result_desc), 518 - bit_offset + bit_count, 519 - acpi_ut_get_node_name(buffer_desc->buffer. 520 - node), 521 - 8 * (u32) buffer_desc->buffer.length)); 522 status = AE_AML_BUFFER_LIMIT; 523 goto cleanup; 524 } ··· 618 "after acpi_ex_resolve_operands"); 619 620 if (ACPI_FAILURE(status)) { 621 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "(%s) bad operand(s) (%X)\n", 622 - acpi_ps_get_opcode_name(op->common. 623 - aml_opcode), status)); 624 625 return_ACPI_STATUS(status); 626 } ··· 1145 1146 default: 1147 1148 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 1149 - "Unknown control opcode=%X Op=%p\n", 1150 - op->common.aml_opcode, op)); 1151 1152 status = AE_AML_BAD_OPCODE; 1153 break;
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 413 /* Host object must be a Buffer */ 414 415 if (ACPI_GET_OBJECT_TYPE(buffer_desc) != ACPI_TYPE_BUFFER) { 416 + ACPI_REPORT_ERROR(("Target of Create Field is not a Buffer object - %s\n", acpi_ut_get_object_type_name(buffer_desc))); 417 418 status = AE_AML_OPERAND_TYPE; 419 goto cleanup; ··· 427 * after resolution in acpi_ex_resolve_operands(). 428 */ 429 if (ACPI_GET_DESCRIPTOR_TYPE(result_desc) != ACPI_DESC_TYPE_NAMED) { 430 + ACPI_REPORT_ERROR(("(%s) destination not a NS Node [%s]\n", 431 + acpi_ps_get_opcode_name(aml_opcode), 432 + acpi_ut_get_descriptor_name(result_desc))); 433 434 status = AE_AML_OPERAND_TYPE; 435 goto cleanup; ··· 453 /* Must have a valid (>0) bit count */ 454 455 if (bit_count == 0) { 456 + ACPI_REPORT_ERROR(("Attempt to create_field of length 0\n")); 457 status = AE_AML_OPERAND_VALUE; 458 goto cleanup; 459 } ··· 507 508 default: 509 510 + ACPI_REPORT_ERROR(("Unknown field creation opcode %02x\n", 511 + aml_opcode)); 512 status = AE_AML_BAD_OPCODE; 513 goto cleanup; 514 } ··· 517 /* Entire field must fit within the current length of the buffer */ 518 519 if ((bit_offset + bit_count) > (8 * (u32) buffer_desc->buffer.length)) { 520 + ACPI_REPORT_ERROR(("Field [%4.4s] size %d exceeds Buffer [%4.4s] size %d (bits)\n", acpi_ut_get_node_name(result_desc), bit_offset + bit_count, acpi_ut_get_node_name(buffer_desc->buffer.node), 8 * (u32) buffer_desc->buffer.length)); 521 status = AE_AML_BUFFER_LIMIT; 522 goto cleanup; 523 } ··· 629 "after acpi_ex_resolve_operands"); 630 631 if (ACPI_FAILURE(status)) { 632 + ACPI_REPORT_ERROR(("(%s) bad operand(s) (%X)\n", 633 + acpi_ps_get_opcode_name(op->common. 634 + aml_opcode), 635 + status)); 636 637 return_ACPI_STATUS(status); 638 } ··· 1155 1156 default: 1157 1158 + ACPI_REPORT_ERROR(("Unknown control opcode=%X Op=%p\n", 1159 + op->common.aml_opcode, op)); 1160 1161 status = AE_AML_BAD_OPCODE; 1162 break;
+7 -11
drivers/acpi/dispatcher/dsutils.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 176 /* Must have both an Op and a Result Object */ 177 178 if (!op) { 179 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Null Op\n")); 180 return_UINT8(TRUE); 181 } 182 ··· 216 parent_info = 217 acpi_ps_get_opcode_info(op->common.parent->common.aml_opcode); 218 if (parent_info->class == AML_CLASS_UNKNOWN) { 219 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 220 - "Unknown parent opcode. Op=%p\n", op)); 221 return_UINT8(FALSE); 222 } 223 ··· 343 ACPI_FUNCTION_TRACE_PTR("ds_delete_result_if_not_used", result_obj); 344 345 if (!op) { 346 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Null Op\n")); 347 return_VOID; 348 } 349 ··· 634 * Only error is underflow, and this indicates 635 * a missing or null operand! 636 */ 637 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 638 - "Missing or null operand, %s\n", 639 - acpi_format_exception 640 - (status))); 641 return_ACPI_STATUS(status); 642 } 643 } else { ··· 726 */ 727 (void)acpi_ds_obj_stack_pop_and_delete(arg_count, walk_state); 728 729 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "While creating Arg %d - %s\n", 730 - (arg_count + 1), acpi_format_exception(status))); 731 return_ACPI_STATUS(status); 732 }
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 176 /* Must have both an Op and a Result Object */ 177 178 if (!op) { 179 + ACPI_REPORT_ERROR(("Null Op\n")); 180 return_UINT8(TRUE); 181 } 182 ··· 216 parent_info = 217 acpi_ps_get_opcode_info(op->common.parent->common.aml_opcode); 218 if (parent_info->class == AML_CLASS_UNKNOWN) { 219 + ACPI_REPORT_ERROR(("Unknown parent opcode Op=%p\n", op)); 220 return_UINT8(FALSE); 221 } 222 ··· 344 ACPI_FUNCTION_TRACE_PTR("ds_delete_result_if_not_used", result_obj); 345 346 if (!op) { 347 + ACPI_REPORT_ERROR(("Null Op\n")); 348 return_VOID; 349 } 350 ··· 635 * Only error is underflow, and this indicates 636 * a missing or null operand! 637 */ 638 + ACPI_REPORT_ERROR(("Missing or null operand, %s\n", acpi_format_exception(status))); 639 return_ACPI_STATUS(status); 640 } 641 } else { ··· 730 */ 731 (void)acpi_ds_obj_stack_pop_and_delete(arg_count, walk_state); 732 733 + ACPI_REPORT_ERROR(("While creating Arg %d - %s\n", 734 + (arg_count + 1), acpi_format_exception(status))); 735 return_ACPI_STATUS(status); 736 }
+11 -25
drivers/acpi/dispatcher/dswexec.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 100 if (result_obj) { 101 status = acpi_ds_result_pop(&obj_desc, walk_state); 102 if (ACPI_FAILURE(status)) { 103 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 104 - "Could not get result from predicate evaluation, %s\n", 105 - acpi_format_exception(status))); 106 107 return_ACPI_STATUS(status); 108 } ··· 121 } 122 123 if (!obj_desc) { 124 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 125 - "No predicate obj_desc=%p State=%p\n", 126 - obj_desc, walk_state)); 127 128 return_ACPI_STATUS(AE_AML_NO_OPERAND); 129 } ··· 137 } 138 139 if (ACPI_GET_OBJECT_TYPE(local_obj_desc) != ACPI_TYPE_INTEGER) { 140 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 141 - "Bad predicate (not an integer) obj_desc=%p State=%p Type=%X\n", 142 - obj_desc, walk_state, 143 - ACPI_GET_OBJECT_TYPE(obj_desc))); 144 145 status = AE_AML_OPERAND_TYPE; 146 goto cleanup; ··· 356 op_class = walk_state->op_info->class; 357 358 if (op_class == AML_CLASS_UNKNOWN) { 359 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Unknown opcode %X\n", 360 - op->common.aml_opcode)); 361 return_ACPI_STATUS(AE_NOT_IMPLEMENTED); 362 } 363 ··· 447 walk_state->operands[1]->reference.offset)) { 448 status = AE_OK; 449 } else { 450 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 451 - "[%s]: Could not resolve operands, %s\n", 452 - acpi_ps_get_opcode_name 453 - (walk_state->opcode), 454 - acpi_format_exception 455 - (status))); 456 } 457 } 458 ··· 666 667 case AML_TYPE_UNDEFINED: 668 669 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 670 - "Undefined opcode type Op=%p\n", op)); 671 return_ACPI_STATUS(AE_NOT_IMPLEMENTED); 672 673 case AML_TYPE_BOGUS: ··· 679 680 default: 681 682 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 683 - "Unimplemented opcode, class=%X type=%X Opcode=%X Op=%p\n", 684 - op_class, op_type, 685 - op->common.aml_opcode, op)); 686 687 status = AE_NOT_IMPLEMENTED; 688 break;
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 100 if (result_obj) { 101 status = acpi_ds_result_pop(&obj_desc, walk_state); 102 if (ACPI_FAILURE(status)) { 103 + ACPI_REPORT_ERROR(("Could not get result from predicate evaluation, %s\n", acpi_format_exception(status))); 104 105 return_ACPI_STATUS(status); 106 } ··· 123 } 124 125 if (!obj_desc) { 126 + ACPI_REPORT_ERROR(("No predicate obj_desc=%p State=%p\n", 127 + obj_desc, walk_state)); 128 129 return_ACPI_STATUS(AE_AML_NO_OPERAND); 130 } ··· 140 } 141 142 if (ACPI_GET_OBJECT_TYPE(local_obj_desc) != ACPI_TYPE_INTEGER) { 143 + ACPI_REPORT_ERROR(("Bad predicate (not an integer) obj_desc=%p State=%p Type=%X\n", obj_desc, walk_state, ACPI_GET_OBJECT_TYPE(obj_desc))); 144 145 status = AE_AML_OPERAND_TYPE; 146 goto cleanup; ··· 362 op_class = walk_state->op_info->class; 363 364 if (op_class == AML_CLASS_UNKNOWN) { 365 + ACPI_REPORT_ERROR(("Unknown opcode %X\n", 366 + op->common.aml_opcode)); 367 return_ACPI_STATUS(AE_NOT_IMPLEMENTED); 368 } 369 ··· 453 walk_state->operands[1]->reference.offset)) { 454 status = AE_OK; 455 } else { 456 + ACPI_REPORT_ERROR(("[%s]: Could not resolve operands, %s\n", acpi_ps_get_opcode_name(walk_state->opcode), acpi_format_exception(status))); 457 } 458 } 459 ··· 677 678 case AML_TYPE_UNDEFINED: 679 680 + ACPI_REPORT_ERROR(("Undefined opcode type Op=%p\n", 681 + op)); 682 return_ACPI_STATUS(AE_NOT_IMPLEMENTED); 683 684 case AML_TYPE_BOGUS: ··· 690 691 default: 692 693 + ACPI_REPORT_ERROR(("Unimplemented opcode, class=%X type=%X Opcode=%X Op=%p\n", op_class, op_type, op->common.aml_opcode, op)); 694 695 status = AE_NOT_IMPLEMENTED; 696 break;
+1 -1
drivers/acpi/dispatcher/dswload.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+3 -3
drivers/acpi/dispatcher/dswscope.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 107 if (!node) { 108 /* Invalid scope */ 109 110 - ACPI_REPORT_ERROR(("ds_scope_stack_push: null scope passed\n")); 111 return_ACPI_STATUS(AE_BAD_PARAMETER); 112 } 113 114 /* Make sure object type is valid */ 115 116 if (!acpi_ut_valid_object_type(type)) { 117 - ACPI_REPORT_WARNING(("ds_scope_stack_push: Invalid object type: 0x%X\n", type)); 118 } 119 120 /* Allocate a new scope object */
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 107 if (!node) { 108 /* Invalid scope */ 109 110 + ACPI_REPORT_ERROR(("Null scope parameter\n")); 111 return_ACPI_STATUS(AE_BAD_PARAMETER); 112 } 113 114 /* Make sure object type is valid */ 115 116 if (!acpi_ut_valid_object_type(type)) { 117 + ACPI_REPORT_WARNING(("Invalid object type: 0x%X\n", type)); 118 } 119 120 /* Allocate a new scope object */
+37 -69
drivers/acpi/dispatcher/dswstate.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 92 93 state = walk_state->results; 94 if (!state) { 95 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 96 - "No result object pushed! State=%p\n", 97 - walk_state)); 98 return (AE_NOT_EXIST); 99 } 100 101 if (index >= ACPI_OBJ_MAX_OPERAND) { 102 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 103 - "Index out of range: %X State=%p Num=%X\n", 104 - index, walk_state, 105 - state->results.num_results)); 106 } 107 108 /* Check for a valid result object */ 109 110 if (!state->results.obj_desc[index]) { 111 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 112 - "Null operand! State=%p #Ops=%X, Index=%X\n", 113 - walk_state, state->results.num_results, 114 - index)); 115 return (AE_AML_NO_RETURN_VALUE); 116 } 117 ··· 160 } 161 162 if (!state->results.num_results) { 163 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 164 - "Result stack is empty! State=%p\n", 165 - walk_state)); 166 return (AE_AML_NO_RETURN_VALUE); 167 } 168 ··· 188 } 189 } 190 191 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 192 - "No result objects! State=%p\n", walk_state)); 193 return (AE_AML_NO_RETURN_VALUE); 194 } 195 ··· 217 218 state = walk_state->results; 219 if (!state) { 220 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 221 - "Warning: No result object pushed! State=%p\n", 222 - walk_state)); 223 return (AE_NOT_EXIST); 224 } 225 226 if (!state->results.num_results) { 227 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 228 - "No result objects! State=%p\n", walk_state)); 229 return (AE_AML_NO_RETURN_VALUE); 230 } 231 ··· 244 /* Check for a valid result object */ 245 246 if (!*object) { 247 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 248 - "Null operand! State=%p #Ops=%X Index=%X\n", 249 - walk_state, state->results.num_results, 250 - (u32) index)); 251 return (AE_AML_NO_RETURN_VALUE); 252 } 253 ··· 286 } 287 288 if (state->results.num_results == ACPI_OBJ_NUM_OPERANDS) { 289 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 290 - "Result stack overflow: Obj=%p State=%p Num=%X\n", 291 - object, walk_state, 292 - state->results.num_results)); 293 return (AE_STACK_OVERFLOW); 294 } 295 296 if (!object) { 297 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 298 - "Null Object! Obj=%p State=%p Num=%X\n", 299 - object, walk_state, 300 - state->results.num_results)); 301 return (AE_BAD_PARAMETER); 302 } 303 ··· 402 /* Check for stack overflow */ 403 404 if (walk_state->num_operands >= ACPI_OBJ_NUM_OPERANDS) { 405 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 406 - "overflow! Obj=%p State=%p #Ops=%X\n", 407 - object, walk_state, 408 - walk_state->num_operands)); 409 return (AE_STACK_OVERFLOW); 410 } 411 ··· 446 /* Check for stack underflow */ 447 448 if (walk_state->num_operands == 0) { 449 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 450 - "Underflow! Count=%X State=%p #Ops=%X\n", 451 - pop_count, walk_state, 452 - walk_state->num_operands)); 453 return (AE_STACK_UNDERFLOW); 454 } 455 ··· 489 /* Check for stack underflow */ 490 491 if (walk_state->num_operands == 0) { 492 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 493 - "Underflow! Count=%X State=%p #Ops=%X\n", 494 - pop_count, walk_state, 495 - walk_state->num_operands)); 496 return (AE_STACK_UNDERFLOW); 497 } 498 ··· 806 } 807 808 if (walk_state->data_type != ACPI_DESC_TYPE_WALK) { 809 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 810 - "%p is not a valid walk state\n", 811 - walk_state)); 812 return; 813 } 814 815 if (walk_state->parser_state.scope) { 816 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 817 - "%p walk still has a scope list\n", 818 - walk_state)); 819 } 820 821 /* Always must free any linked control states */ ··· 872 873 state = walk_state->results; 874 if (!state) { 875 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 876 - "No result object pushed! State=%p\n", 877 - walk_state)); 878 return (AE_NOT_EXIST); 879 } 880 881 if (index >= ACPI_OBJ_NUM_OPERANDS) { 882 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 883 - "Index out of range: %X Obj=%p State=%p Num=%X\n", 884 - index, object, walk_state, 885 - state->results.num_results)); 886 return (AE_BAD_PARAMETER); 887 } 888 889 if (!object) { 890 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 891 - "Null Object! Index=%X Obj=%p State=%p Num=%X\n", 892 - index, object, walk_state, 893 - state->results.num_results)); 894 return (AE_BAD_PARAMETER); 895 } 896 ··· 957 /* Check for stack underflow */ 958 959 if (walk_state->num_operands == 0) { 960 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 961 - "Missing operand/stack empty! State=%p #Ops=%X\n", 962 - walk_state, walk_state->num_operands)); 963 *object = NULL; 964 return (AE_AML_NO_OPERAND); 965 } ··· 969 /* Check for a valid operand */ 970 971 if (!walk_state->operands[walk_state->num_operands]) { 972 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 973 - "Null operand! State=%p #Ops=%X\n", 974 - walk_state, walk_state->num_operands)); 975 *object = NULL; 976 return (AE_AML_NO_OPERAND); 977 }
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 92 93 state = walk_state->results; 94 if (!state) { 95 + ACPI_REPORT_ERROR(("No result object pushed! State=%p\n", 96 + walk_state)); 97 return (AE_NOT_EXIST); 98 } 99 100 if (index >= ACPI_OBJ_MAX_OPERAND) { 101 + ACPI_REPORT_ERROR(("Index out of range: %X State=%p Num=%X\n", 102 + index, walk_state, 103 + state->results.num_results)); 104 } 105 106 /* Check for a valid result object */ 107 108 if (!state->results.obj_desc[index]) { 109 + ACPI_REPORT_ERROR(("Null operand! State=%p #Ops=%X, Index=%X\n", 110 + walk_state, state->results.num_results, 111 + index)); 112 return (AE_AML_NO_RETURN_VALUE); 113 } 114 ··· 163 } 164 165 if (!state->results.num_results) { 166 + ACPI_REPORT_ERROR(("Result stack is empty! State=%p\n", 167 + walk_state)); 168 return (AE_AML_NO_RETURN_VALUE); 169 } 170 ··· 192 } 193 } 194 195 + ACPI_REPORT_ERROR(("No result objects! State=%p\n", walk_state)); 196 return (AE_AML_NO_RETURN_VALUE); 197 } 198 ··· 222 223 state = walk_state->results; 224 if (!state) { 225 + ACPI_REPORT_ERROR(("No result object pushed! State=%p\n", 226 + walk_state)); 227 return (AE_NOT_EXIST); 228 } 229 230 if (!state->results.num_results) { 231 + ACPI_REPORT_ERROR(("No result objects! State=%p\n", 232 + walk_state)); 233 return (AE_AML_NO_RETURN_VALUE); 234 } 235 ··· 250 /* Check for a valid result object */ 251 252 if (!*object) { 253 + ACPI_REPORT_ERROR(("Null operand! State=%p #Ops=%X Index=%X\n", 254 + walk_state, state->results.num_results, 255 + (u32) index)); 256 return (AE_AML_NO_RETURN_VALUE); 257 } 258 ··· 293 } 294 295 if (state->results.num_results == ACPI_OBJ_NUM_OPERANDS) { 296 + ACPI_REPORT_ERROR(("Result stack overflow: Obj=%p State=%p Num=%X\n", object, walk_state, state->results.num_results)); 297 return (AE_STACK_OVERFLOW); 298 } 299 300 if (!object) { 301 + ACPI_REPORT_ERROR(("Null Object! Obj=%p State=%p Num=%X\n", 302 + object, walk_state, 303 + state->results.num_results)); 304 return (AE_BAD_PARAMETER); 305 } 306 ··· 413 /* Check for stack overflow */ 414 415 if (walk_state->num_operands >= ACPI_OBJ_NUM_OPERANDS) { 416 + ACPI_REPORT_ERROR(("Object stack overflow! Obj=%p State=%p #Ops=%X\n", object, walk_state, walk_state->num_operands)); 417 return (AE_STACK_OVERFLOW); 418 } 419 ··· 460 /* Check for stack underflow */ 461 462 if (walk_state->num_operands == 0) { 463 + ACPI_REPORT_ERROR(("Object stack underflow! Count=%X State=%p #Ops=%X\n", pop_count, walk_state, walk_state->num_operands)); 464 return (AE_STACK_UNDERFLOW); 465 } 466 ··· 506 /* Check for stack underflow */ 507 508 if (walk_state->num_operands == 0) { 509 + ACPI_REPORT_ERROR(("Object stack underflow! Count=%X State=%p #Ops=%X\n", pop_count, walk_state, walk_state->num_operands)); 510 return (AE_STACK_UNDERFLOW); 511 } 512 ··· 826 } 827 828 if (walk_state->data_type != ACPI_DESC_TYPE_WALK) { 829 + ACPI_REPORT_ERROR(("%p is not a valid walk state\n", 830 + walk_state)); 831 return; 832 } 833 834 if (walk_state->parser_state.scope) { 835 + ACPI_REPORT_ERROR(("%p walk still has a scope list\n", 836 + walk_state)); 837 } 838 839 /* Always must free any linked control states */ ··· 894 895 state = walk_state->results; 896 if (!state) { 897 + ACPI_REPORT_ERROR(("No result object pushed! State=%p\n", 898 + walk_state)); 899 return (AE_NOT_EXIST); 900 } 901 902 if (index >= ACPI_OBJ_NUM_OPERANDS) { 903 + ACPI_REPORT_ERROR(("Index out of range: %X Obj=%p State=%p Num=%X\n", index, object, walk_state, state->results.num_results)); 904 return (AE_BAD_PARAMETER); 905 } 906 907 if (!object) { 908 + ACPI_REPORT_ERROR(("Null Object! Index=%X Obj=%p State=%p Num=%X\n", index, object, walk_state, state->results.num_results)); 909 return (AE_BAD_PARAMETER); 910 } 911 ··· 986 /* Check for stack underflow */ 987 988 if (walk_state->num_operands == 0) { 989 + ACPI_REPORT_ERROR(("Missing operand/stack empty! State=%p #Ops=%X\n", walk_state, walk_state->num_operands)); 990 *object = NULL; 991 return (AE_AML_NO_OPERAND); 992 } ··· 1000 /* Check for a valid operand */ 1001 1002 if (!walk_state->operands[walk_state->num_operands]) { 1003 + ACPI_REPORT_ERROR(("Null operand! State=%p #Ops=%X\n", 1004 + walk_state, walk_state->num_operands)); 1005 *object = NULL; 1006 return (AE_AML_NO_OPERAND); 1007 }
+2 -2
drivers/acpi/events/evevent.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 73 /* Make sure we have ACPI tables */ 74 75 if (!acpi_gbl_DSDT) { 76 - ACPI_DEBUG_PRINT((ACPI_DB_WARN, "No ACPI tables present!\n")); 77 return_ACPI_STATUS(AE_NO_ACPI_TABLES); 78 } 79
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 73 /* Make sure we have ACPI tables */ 74 75 if (!acpi_gbl_DSDT) { 76 + ACPI_REPORT_WARNING(("No ACPI tables present!\n")); 77 return_ACPI_STATUS(AE_NO_ACPI_TABLES); 78 } 79
+13 -7
drivers/acpi/events/evgpe.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 599 ACPI_GPE_EDGE_TRIGGERED) { 600 status = acpi_hw_clear_gpe(gpe_event_info); 601 if (ACPI_FAILURE(status)) { 602 - ACPI_REPORT_ERROR(("acpi_ev_gpe_dispatch: %s, Unable to clear GPE[%2X]\n", acpi_format_exception(status), gpe_number)); 603 return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); 604 } 605 } ··· 639 ACPI_GPE_LEVEL_TRIGGERED) { 640 status = acpi_hw_clear_gpe(gpe_event_info); 641 if (ACPI_FAILURE(status)) { 642 - ACPI_REPORT_ERROR(("acpi_ev_gpe_dispatch: %s, Unable to clear GPE[%2X]\n", acpi_format_exception(status), gpe_number)); 643 return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); 644 } 645 } ··· 653 */ 654 status = acpi_ev_disable_gpe(gpe_event_info); 655 if (ACPI_FAILURE(status)) { 656 - ACPI_REPORT_ERROR(("acpi_ev_gpe_dispatch: %s, Unable to disable GPE[%2X]\n", acpi_format_exception(status), gpe_number)); 657 return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); 658 } 659 ··· 667 acpi_ev_asynch_execute_gpe_method, 668 gpe_event_info); 669 if (ACPI_FAILURE(status)) { 670 - ACPI_REPORT_ERROR(("acpi_ev_gpe_dispatch: %s, Unable to queue handler for GPE[%2X] - event disabled\n", acpi_format_exception(status), gpe_number)); 671 } 672 break; 673 ··· 675 676 /* No handler or method to run! */ 677 678 - ACPI_REPORT_ERROR(("acpi_ev_gpe_dispatch: No handler or method for GPE[%2X], disabling event\n", gpe_number)); 679 680 /* 681 * Disable the GPE. The GPE will remain disabled until the ACPI ··· 683 */ 684 status = acpi_ev_disable_gpe(gpe_event_info); 685 if (ACPI_FAILURE(status)) { 686 - ACPI_REPORT_ERROR(("acpi_ev_gpe_dispatch: %s, Unable to disable GPE[%2X]\n", acpi_format_exception(status), gpe_number)); 687 return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); 688 } 689 break;
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 599 ACPI_GPE_EDGE_TRIGGERED) { 600 status = acpi_hw_clear_gpe(gpe_event_info); 601 if (ACPI_FAILURE(status)) { 602 + ACPI_REPORT_ERROR(("%s, Unable to clear GPE[%2X]\n", 603 + acpi_format_exception(status), 604 + gpe_number)); 605 return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); 606 } 607 } ··· 637 ACPI_GPE_LEVEL_TRIGGERED) { 638 status = acpi_hw_clear_gpe(gpe_event_info); 639 if (ACPI_FAILURE(status)) { 640 + ACPI_REPORT_ERROR(("%s, Unable to clear GPE[%2X]\n", acpi_format_exception(status), gpe_number)); 641 return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); 642 } 643 } ··· 651 */ 652 status = acpi_ev_disable_gpe(gpe_event_info); 653 if (ACPI_FAILURE(status)) { 654 + ACPI_REPORT_ERROR(("%s, Unable to disable GPE[%2X]\n", 655 + acpi_format_exception(status), 656 + gpe_number)); 657 return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); 658 } 659 ··· 663 acpi_ev_asynch_execute_gpe_method, 664 gpe_event_info); 665 if (ACPI_FAILURE(status)) { 666 + ACPI_REPORT_ERROR(("%s, Unable to queue handler for GPE[%2X] - event disabled\n", acpi_format_exception(status), gpe_number)); 667 } 668 break; 669 ··· 671 672 /* No handler or method to run! */ 673 674 + ACPI_REPORT_ERROR(("No handler or method for GPE[%2X], disabling event\n", gpe_number)); 675 676 /* 677 * Disable the GPE. The GPE will remain disabled until the ACPI ··· 679 */ 680 status = acpi_ev_disable_gpe(gpe_event_info); 681 if (ACPI_FAILURE(status)) { 682 + ACPI_REPORT_ERROR(("%s, Unable to disable GPE[%2X]\n", 683 + acpi_format_exception(status), 684 + gpe_number)); 685 return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); 686 } 687 break;
+6 -14
drivers/acpi/events/evgpeblk.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 279 default: 280 /* Unknown method type, just ignore it! */ 281 282 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 283 - "Unknown GPE method type: %s (name not of form _Lxx or _Exx)\n", 284 - name)); 285 return_ACPI_STATUS(AE_OK); 286 } 287 ··· 289 if (gpe_number == ACPI_UINT32_MAX) { 290 /* Conversion failed; invalid method, just ignore it */ 291 292 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 293 - "Could not extract GPE number from name: %s (name is not of form _Lxx or _Exx)\n", 294 - name)); 295 return_ACPI_STATUS(AE_OK); 296 } 297 ··· 523 acpi_ev_gpe_xrupt_handler, 524 gpe_xrupt); 525 if (ACPI_FAILURE(status)) { 526 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 527 - "Could not install GPE interrupt handler at level 0x%X\n", 528 - interrupt_number)); 529 return_PTR(NULL); 530 } 531 } ··· 739 sizeof(struct 740 acpi_gpe_register_info)); 741 if (!gpe_register_info) { 742 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 743 - "Could not allocate the gpe_register_info table\n")); 744 return_ACPI_STATUS(AE_NO_MEMORY); 745 } 746 ··· 752 ACPI_GPE_REGISTER_WIDTH) * 753 sizeof(struct acpi_gpe_event_info)); 754 if (!gpe_event_info) { 755 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 756 - "Could not allocate the gpe_event_info table\n")); 757 status = AE_NO_MEMORY; 758 goto error_exit; 759 }
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 279 default: 280 /* Unknown method type, just ignore it! */ 281 282 + ACPI_REPORT_ERROR(("Unknown GPE method type: %s (name not of form _Lxx or _Exx)\n", name)); 283 return_ACPI_STATUS(AE_OK); 284 } 285 ··· 291 if (gpe_number == ACPI_UINT32_MAX) { 292 /* Conversion failed; invalid method, just ignore it */ 293 294 + ACPI_REPORT_ERROR(("Could not extract GPE number from name: %s (name is not of form _Lxx or _Exx)\n", name)); 295 return_ACPI_STATUS(AE_OK); 296 } 297 ··· 527 acpi_ev_gpe_xrupt_handler, 528 gpe_xrupt); 529 if (ACPI_FAILURE(status)) { 530 + ACPI_REPORT_ERROR(("Could not install GPE interrupt handler at level 0x%X\n", interrupt_number)); 531 return_PTR(NULL); 532 } 533 } ··· 745 sizeof(struct 746 acpi_gpe_register_info)); 747 if (!gpe_register_info) { 748 + ACPI_REPORT_ERROR(("Could not allocate the gpe_register_info table\n")); 749 return_ACPI_STATUS(AE_NO_MEMORY); 750 } 751 ··· 759 ACPI_GPE_REGISTER_WIDTH) * 760 sizeof(struct acpi_gpe_event_info)); 761 if (!gpe_event_info) { 762 + ACPI_REPORT_ERROR(("Could not allocate the gpe_event_info table\n")); 763 status = AE_NO_MEMORY; 764 goto error_exit; 765 }
+4 -8
drivers/acpi/events/evmisc.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 542 for (i = 0; i < ACPI_NUM_FIXED_EVENTS; i++) { 543 status = acpi_disable_event((u32) i, 0); 544 if (ACPI_FAILURE(status)) { 545 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 546 - "Could not disable fixed event %d\n", 547 - (u32) i)); 548 } 549 } 550 ··· 554 555 status = acpi_ev_remove_sci_handler(); 556 if (ACPI_FAILURE(status)) { 557 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 558 - "Could not remove SCI handler\n")); 559 } 560 } 561 ··· 567 if (acpi_gbl_original_mode == ACPI_SYS_MODE_LEGACY) { 568 status = acpi_disable(); 569 if (ACPI_FAILURE(status)) { 570 - ACPI_DEBUG_PRINT((ACPI_DB_WARN, 571 - "acpi_disable failed\n")); 572 } 573 } 574 return_VOID;
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 542 for (i = 0; i < ACPI_NUM_FIXED_EVENTS; i++) { 543 status = acpi_disable_event((u32) i, 0); 544 if (ACPI_FAILURE(status)) { 545 + ACPI_REPORT_ERROR(("Could not disable fixed event %d\n", (u32) i)); 546 } 547 } 548 ··· 556 557 status = acpi_ev_remove_sci_handler(); 558 if (ACPI_FAILURE(status)) { 559 + ACPI_REPORT_ERROR(("Could not remove SCI handler\n")); 560 } 561 } 562 ··· 570 if (acpi_gbl_original_mode == ACPI_SYS_MODE_LEGACY) { 571 status = acpi_disable(); 572 if (ACPI_FAILURE(status)) { 573 + ACPI_REPORT_WARNING(("acpi_disable failed\n")); 574 } 575 } 576 return_VOID;
+14 -31
drivers/acpi/events/evregion.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 295 296 handler_desc = region_obj->region.handler; 297 if (!handler_desc) { 298 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 299 - "No handler for Region [%4.4s] (%p) [%s]\n", 300 - acpi_ut_get_node_name(region_obj->region. 301 - node), region_obj, 302 - acpi_ut_get_region_name(region_obj->region. 303 - space_id))); 304 305 return_ACPI_STATUS(AE_NOT_EXIST); 306 } ··· 316 if (!region_setup) { 317 /* No initialization routine, exit with error */ 318 319 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 320 - "No init routine for region(%p) [%s]\n", 321 - region_obj, 322 - acpi_ut_get_region_name(region_obj-> 323 - region. 324 - space_id))); 325 return_ACPI_STATUS(AE_NOT_EXIST); 326 } 327 ··· 341 /* Check for failure of the Region Setup */ 342 343 if (ACPI_FAILURE(status)) { 344 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 345 - "Region Init: %s [%s]\n", 346 - acpi_format_exception(status), 347 - acpi_ut_get_region_name(region_obj-> 348 - region. 349 - space_id))); 350 return_ACPI_STATUS(status); 351 } 352 ··· 494 495 status = acpi_ev_execute_reg_method(region_obj, 0); 496 if (ACPI_FAILURE(status)) { 497 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 498 - "%s from region _REG, [%s]\n", 499 - acpi_format_exception(status), 500 - acpi_ut_get_region_name 501 - (region_obj->region. 502 - space_id))); 503 } 504 505 if (acpi_ns_is_locked) { ··· 516 /* Init routine may fail, Just ignore errors */ 517 518 if (ACPI_FAILURE(status)) { 519 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 520 - "%s from region init, [%s]\n", 521 - acpi_format_exception(status), 522 - acpi_ut_get_region_name 523 - (region_obj->region. 524 - space_id))); 525 } 526 527 region_obj->region.flags &= ~(AOPOBJ_SETUP_COMPLETE);
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 295 296 handler_desc = region_obj->region.handler; 297 if (!handler_desc) { 298 + ACPI_REPORT_ERROR(("No handler for Region [%4.4s] (%p) [%s]\n", 299 + acpi_ut_get_node_name(region_obj->region. 300 + node), region_obj, 301 + acpi_ut_get_region_name(region_obj->region. 302 + space_id))); 303 304 return_ACPI_STATUS(AE_NOT_EXIST); 305 } ··· 317 if (!region_setup) { 318 /* No initialization routine, exit with error */ 319 320 + ACPI_REPORT_ERROR(("No init routine for region(%p) [%s]\n", region_obj, acpi_ut_get_region_name(region_obj->region.space_id))); 321 return_ACPI_STATUS(AE_NOT_EXIST); 322 } 323 ··· 347 /* Check for failure of the Region Setup */ 348 349 if (ACPI_FAILURE(status)) { 350 + ACPI_REPORT_ERROR(("Region Initialization: %s [%s]\n", 351 + acpi_format_exception(status), 352 + acpi_ut_get_region_name(region_obj-> 353 + region. 354 + space_id))); 355 return_ACPI_STATUS(status); 356 } 357 ··· 501 502 status = acpi_ev_execute_reg_method(region_obj, 0); 503 if (ACPI_FAILURE(status)) { 504 + ACPI_REPORT_ERROR(("%s from region _REG, [%s]\n", acpi_format_exception(status), acpi_ut_get_region_name(region_obj->region.space_id))); 505 } 506 507 if (acpi_ns_is_locked) { ··· 528 /* Init routine may fail, Just ignore errors */ 529 530 if (ACPI_FAILURE(status)) { 531 + ACPI_REPORT_ERROR(("%s from region init, [%s]\n", acpi_format_exception(status), acpi_ut_get_region_name(region_obj->region.space_id))); 532 } 533 534 region_obj->region.flags &= ~(AOPOBJ_SETUP_COMPLETE);
+1 -1
drivers/acpi/events/evrgnini.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
drivers/acpi/events/evsci.c
··· 6 ******************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
··· 6 ******************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
+6 -7
drivers/acpi/events/evxface.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 143 if (ACPI_SUCCESS(status)) 144 status = acpi_enable_event(event, 0); 145 if (ACPI_FAILURE(status)) { 146 - ACPI_DEBUG_PRINT((ACPI_DB_WARN, 147 - "Could not enable fixed event.\n")); 148 149 /* Remove the handler */ 150 ··· 204 acpi_gbl_fixed_event_handlers[event].context = NULL; 205 206 if (ACPI_FAILURE(status)) { 207 - ACPI_DEBUG_PRINT((ACPI_DB_WARN, 208 - "Could not write to fixed event enable register.\n")); 209 } else { 210 - ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Disabled fixed event %X.\n", 211 event)); 212 } 213 ··· 433 434 if (device == ACPI_ROOT_OBJECT) { 435 ACPI_DEBUG_PRINT((ACPI_DB_INFO, 436 - "Removing notify handler for ROOT object.\n")); 437 438 if (((handler_type & ACPI_SYSTEM_NOTIFY) && 439 !acpi_gbl_system_notify.handler) ||
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 143 if (ACPI_SUCCESS(status)) 144 status = acpi_enable_event(event, 0); 145 if (ACPI_FAILURE(status)) { 146 + ACPI_REPORT_WARNING(("Could not enable fixed event %X\n", 147 + event)); 148 149 /* Remove the handler */ 150 ··· 204 acpi_gbl_fixed_event_handlers[event].context = NULL; 205 206 if (ACPI_FAILURE(status)) { 207 + ACPI_REPORT_WARNING(("Could not write to fixed event enable register %X\n", event)); 208 } else { 209 + ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Disabled fixed event %X\n", 210 event)); 211 } 212 ··· 434 435 if (device == ACPI_ROOT_OBJECT) { 436 ACPI_DEBUG_PRINT((ACPI_DB_INFO, 437 + "Removing notify handler for namespace root object\n")); 438 439 if (((handler_type & ACPI_SYSTEM_NOTIFY) && 440 !acpi_gbl_system_notify.handler) ||
+9 -14
drivers/acpi/events/evxfevnt.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 70 /* Make sure we have the FADT */ 71 72 if (!acpi_gbl_FADT) { 73 - ACPI_DEBUG_PRINT((ACPI_DB_WARN, 74 - "No FADT information present!\n")); 75 return_ACPI_STATUS(AE_NO_ACPI_TABLES); 76 } 77 ··· 82 83 status = acpi_hw_set_mode(ACPI_SYS_MODE_ACPI); 84 if (ACPI_FAILURE(status)) { 85 - ACPI_REPORT_ERROR(("Could not transition to ACPI mode.\n")); 86 return_ACPI_STATUS(status); 87 } 88 ··· 112 ACPI_FUNCTION_TRACE("acpi_disable"); 113 114 if (!acpi_gbl_FADT) { 115 - ACPI_DEBUG_PRINT((ACPI_DB_WARN, 116 - "No FADT information present!\n")); 117 return_ACPI_STATUS(AE_NO_ACPI_TABLES); 118 } 119 ··· 125 status = acpi_hw_set_mode(ACPI_SYS_MODE_LEGACY); 126 127 if (ACPI_FAILURE(status)) { 128 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 129 - "Could not exit ACPI mode to legacy mode")); 130 return_ACPI_STATUS(status); 131 } 132 ··· 182 } 183 184 if (value != 1) { 185 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 186 - "Could not enable %s event\n", 187 - acpi_ut_get_event_name(event))); 188 return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE); 189 } 190 ··· 380 } 381 382 if (value != 0) { 383 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 384 - "Could not disable %s events\n", 385 - acpi_ut_get_event_name(event))); 386 return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE); 387 } 388
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 70 /* Make sure we have the FADT */ 71 72 if (!acpi_gbl_FADT) { 73 + ACPI_REPORT_WARNING(("No FADT information present!\n")); 74 return_ACPI_STATUS(AE_NO_ACPI_TABLES); 75 } 76 ··· 83 84 status = acpi_hw_set_mode(ACPI_SYS_MODE_ACPI); 85 if (ACPI_FAILURE(status)) { 86 + ACPI_REPORT_ERROR(("Could not transition to ACPI mode\n")); 87 return_ACPI_STATUS(status); 88 } 89 ··· 113 ACPI_FUNCTION_TRACE("acpi_disable"); 114 115 if (!acpi_gbl_FADT) { 116 + ACPI_REPORT_WARNING(("No FADT information present!\n")); 117 return_ACPI_STATUS(AE_NO_ACPI_TABLES); 118 } 119 ··· 127 status = acpi_hw_set_mode(ACPI_SYS_MODE_LEGACY); 128 129 if (ACPI_FAILURE(status)) { 130 + ACPI_REPORT_ERROR(("Could not exit ACPI mode to legacy mode")); 131 return_ACPI_STATUS(status); 132 } 133 ··· 185 } 186 187 if (value != 1) { 188 + ACPI_REPORT_ERROR(("Could not enable %s event\n", 189 + acpi_ut_get_event_name(event))); 190 return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE); 191 } 192 ··· 384 } 385 386 if (value != 0) { 387 + ACPI_REPORT_ERROR(("Could not disable %s events\n", 388 + acpi_ut_get_event_name(event))); 389 return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE); 390 } 391
+1 -1
drivers/acpi/events/evxfregn.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
+2 -4
drivers/acpi/executer/exconfig.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 413 (!ACPI_STRNCMP(table_ptr->signature, 414 acpi_gbl_table_data[ACPI_TABLE_SSDT].signature, 415 acpi_gbl_table_data[ACPI_TABLE_SSDT].sig_length))) { 416 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 417 - "Table has invalid signature [%4.4s], must be SSDT or PSDT\n", 418 - table_ptr->signature)); 419 status = AE_BAD_SIGNATURE; 420 goto cleanup; 421 }
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 413 (!ACPI_STRNCMP(table_ptr->signature, 414 acpi_gbl_table_data[ACPI_TABLE_SSDT].signature, 415 acpi_gbl_table_data[ACPI_TABLE_SSDT].sig_length))) { 416 + ACPI_REPORT_ERROR(("Table has invalid signature [%4.4s], must be SSDT or PSDT\n", table_ptr->signature)); 417 status = AE_BAD_SIGNATURE; 418 goto cleanup; 419 }
+3 -12
drivers/acpi/executer/exconvrt.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 654 break; 655 656 default: 657 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 658 - "Unknown Target type ID 0x%X Op %s dest_type %s\n", 659 - GET_CURRENT_ARG_TYPE(walk_state->op_info-> 660 - runtime_args), 661 - walk_state->op_info->name, 662 - acpi_ut_get_type_name(destination_type))); 663 - 664 - ACPI_REPORT_ERROR(("Bad Target Type (ARGI): %X\n", 665 - GET_CURRENT_ARG_TYPE(walk_state->op_info-> 666 - runtime_args))) 667 - status = AE_AML_INTERNAL; 668 } 669 670 /*
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 654 break; 655 656 default: 657 + ACPI_REPORT_ERROR(("Unknown Target type ID 0x%X aml_opcode %X dest_type %s\n", GET_CURRENT_ARG_TYPE(walk_state->op_info->runtime_args), walk_state->opcode, acpi_ut_get_type_name(destination_type))); 658 + status = AE_AML_INTERNAL; 659 } 660 661 /*
+1 -1
drivers/acpi/executer/excreate.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
drivers/acpi/executer/exdump.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
drivers/acpi/executer/exfield.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+17 -43
drivers/acpi/executer/exfldio.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 94 /* We must have a valid region */ 95 96 if (ACPI_GET_OBJECT_TYPE(rgn_desc) != ACPI_TYPE_REGION) { 97 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 98 - "Needed Region, found type %X (%s)\n", 99 - ACPI_GET_OBJECT_TYPE(rgn_desc), 100 - acpi_ut_get_object_type_name(rgn_desc))); 101 102 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 103 } ··· 161 * than the region itself. For example, a region of length one 162 * byte, and a field with Dword access specified. 163 */ 164 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 165 - "Field [%4.4s] access width (%d bytes) too large for region [%4.4s] (length %X)\n", 166 - acpi_ut_get_node_name(obj_desc-> 167 - common_field. 168 - node), 169 - obj_desc->common_field. 170 - access_byte_width, 171 - acpi_ut_get_node_name(rgn_desc-> 172 - region.node), 173 - rgn_desc->region.length)); 174 } 175 176 /* 177 * Offset rounded up to next multiple of field width 178 * exceeds region length, indicate an error 179 */ 180 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 181 - "Field [%4.4s] Base+Offset+Width %X+%X+%X is beyond end of region [%4.4s] (length %X)\n", 182 - acpi_ut_get_node_name(obj_desc->common_field. 183 - node), 184 - obj_desc->common_field.base_byte_offset, 185 - field_datum_byte_offset, 186 - obj_desc->common_field.access_byte_width, 187 - acpi_ut_get_node_name(rgn_desc->region.node), 188 - rgn_desc->region.length)); 189 190 return_ACPI_STATUS(AE_AML_REGION_LIMIT); 191 } ··· 252 253 if (ACPI_FAILURE(status)) { 254 if (status == AE_NOT_IMPLEMENTED) { 255 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 256 - "Region %s(%X) not implemented\n", 257 - acpi_ut_get_region_name(rgn_desc-> 258 - region. 259 - space_id), 260 - rgn_desc->region.space_id)); 261 } else if (status == AE_NOT_EXIST) { 262 ACPI_REPORT_ERROR(("Region %s(%X) has no handler\n", 263 acpi_ut_get_region_name(rgn_desc-> ··· 599 600 default: 601 602 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 603 - "write_with_update_rule: Unknown update_rule setting: %X\n", 604 - (obj_desc->common_field. 605 - field_flags & 606 - AML_FIELD_UPDATE_RULE_MASK))); 607 return_ACPI_STATUS(AE_AML_OPERAND_VALUE); 608 } 609 } ··· 657 658 if (buffer_length < 659 ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->common_field.bit_length)) { 660 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 661 - "Field size %X (bits) is too large for buffer (%X)\n", 662 - obj_desc->common_field.bit_length, 663 - buffer_length)); 664 665 return_ACPI_STATUS(AE_BUFFER_OVERFLOW); 666 } ··· 769 770 if (buffer_length < 771 ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->common_field.bit_length)) { 772 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 773 - "Field size %X (bits) is too large for buffer (%X)\n", 774 - obj_desc->common_field.bit_length, 775 - buffer_length)); 776 777 return_ACPI_STATUS(AE_BUFFER_OVERFLOW); 778 }
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 94 /* We must have a valid region */ 95 96 if (ACPI_GET_OBJECT_TYPE(rgn_desc) != ACPI_TYPE_REGION) { 97 + ACPI_REPORT_ERROR(("Needed Region, found type %X (%s)\n", 98 + ACPI_GET_OBJECT_TYPE(rgn_desc), 99 + acpi_ut_get_object_type_name(rgn_desc))); 100 101 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 102 } ··· 162 * than the region itself. For example, a region of length one 163 * byte, and a field with Dword access specified. 164 */ 165 + ACPI_REPORT_ERROR(("Field [%4.4s] access width (%d bytes) too large for region [%4.4s] (length %X)\n", acpi_ut_get_node_name(obj_desc->common_field.node), obj_desc->common_field.access_byte_width, acpi_ut_get_node_name(rgn_desc->region.node), rgn_desc->region.length)); 166 } 167 168 /* 169 * Offset rounded up to next multiple of field width 170 * exceeds region length, indicate an error 171 */ 172 + ACPI_REPORT_ERROR(("Field [%4.4s] Base+Offset+Width %X+%X+%X is beyond end of region [%4.4s] (length %X)\n", acpi_ut_get_node_name(obj_desc->common_field.node), obj_desc->common_field.base_byte_offset, field_datum_byte_offset, obj_desc->common_field.access_byte_width, acpi_ut_get_node_name(rgn_desc->region.node), rgn_desc->region.length)); 173 174 return_ACPI_STATUS(AE_AML_REGION_LIMIT); 175 } ··· 270 271 if (ACPI_FAILURE(status)) { 272 if (status == AE_NOT_IMPLEMENTED) { 273 + ACPI_REPORT_ERROR(("Region %s(%X) not implemented\n", 274 + acpi_ut_get_region_name(rgn_desc-> 275 + region. 276 + space_id), 277 + rgn_desc->region.space_id)); 278 } else if (status == AE_NOT_EXIST) { 279 ACPI_REPORT_ERROR(("Region %s(%X) has no handler\n", 280 acpi_ut_get_region_name(rgn_desc-> ··· 618 619 default: 620 621 + ACPI_REPORT_ERROR(("Unknown update_rule value: %X\n", 622 + (obj_desc->common_field. 623 + field_flags & 624 + AML_FIELD_UPDATE_RULE_MASK))); 625 return_ACPI_STATUS(AE_AML_OPERAND_VALUE); 626 } 627 } ··· 677 678 if (buffer_length < 679 ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->common_field.bit_length)) { 680 + ACPI_REPORT_ERROR(("Field size %X (bits) is too large for buffer (%X)\n", obj_desc->common_field.bit_length, buffer_length)); 681 682 return_ACPI_STATUS(AE_BUFFER_OVERFLOW); 683 } ··· 792 793 if (buffer_length < 794 ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->common_field.bit_length)) { 795 + ACPI_REPORT_ERROR(("Field size %X (bits) is too large for buffer (%X)\n", obj_desc->common_field.bit_length, buffer_length)); 796 797 return_ACPI_STATUS(AE_BUFFER_OVERFLOW); 798 }
+7 -5
drivers/acpi/executer/exmisc.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 98 99 default: 100 101 - ACPI_REPORT_ERROR(("Unknown Reference opcode in get_reference %X\n", obj_desc->reference.opcode)); 102 return_ACPI_STATUS(AE_AML_INTERNAL); 103 } 104 break; ··· 114 115 default: 116 117 - ACPI_REPORT_ERROR(("Invalid descriptor type in get_reference: %X\n", ACPI_GET_DESCRIPTOR_TYPE(obj_desc))); 118 return_ACPI_STATUS(AE_TYPE); 119 } 120 ··· 268 break; 269 270 default: 271 - ACPI_REPORT_ERROR(("Concatanate - invalid object type: %X\n", 272 ACPI_GET_OBJECT_TYPE(operand0))); 273 status = AE_AML_INTERNAL; 274 } ··· 370 371 /* Invalid object type, should not happen here */ 372 373 - ACPI_REPORT_ERROR(("Concatenate - Invalid object type: %X\n", 374 ACPI_GET_OBJECT_TYPE(operand0))); 375 status = AE_AML_INTERNAL; 376 goto cleanup;
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 98 99 default: 100 101 + ACPI_REPORT_ERROR(("Unknown Reference opcode %X\n", 102 + obj_desc->reference.opcode)); 103 return_ACPI_STATUS(AE_AML_INTERNAL); 104 } 105 break; ··· 113 114 default: 115 116 + ACPI_REPORT_ERROR(("Invalid descriptor type %X\n", 117 + ACPI_GET_DESCRIPTOR_TYPE(obj_desc))); 118 return_ACPI_STATUS(AE_TYPE); 119 } 120 ··· 266 break; 267 268 default: 269 + ACPI_REPORT_ERROR(("Invalid object type: %X\n", 270 ACPI_GET_OBJECT_TYPE(operand0))); 271 status = AE_AML_INTERNAL; 272 } ··· 368 369 /* Invalid object type, should not happen here */ 370 371 + ACPI_REPORT_ERROR(("Invalid object type: %X\n", 372 ACPI_GET_OBJECT_TYPE(operand0))); 373 status = AE_AML_INTERNAL; 374 goto cleanup;
+1 -1
drivers/acpi/executer/exmutex.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
+7 -9
drivers/acpi/executer/exnames.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 99 */ 100 name_string = ACPI_MEM_ALLOCATE(size_needed); 101 if (!name_string) { 102 - ACPI_REPORT_ERROR(("ex_allocate_name_string: Could not allocate size %d\n", size_needed)); 103 return_PTR(NULL); 104 } 105 ··· 168 char_buf[0] = *aml_address; 169 170 if ('0' <= char_buf[0] && char_buf[0] <= '9') { 171 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "leading digit: %c\n", 172 - char_buf[0])); 173 return_ACPI_STATUS(AE_CTRL_PENDING); 174 } 175 ··· 211 * the required 4 212 */ 213 status = AE_AML_BAD_NAME; 214 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 215 - "Bad character %02x in name, at %p\n", 216 - *aml_address, aml_address)); 217 } 218 219 *in_aml_address = ACPI_CAST_PTR(u8, aml_address); ··· 411 if (AE_CTRL_PENDING == status && has_prefix) { 412 /* Ran out of segments after processing a prefix */ 413 414 - ACPI_REPORT_ERROR(("ex_do_name: Malformed Name at %p\n", 415 - name_string)); 416 status = AE_AML_BAD_NAME; 417 } 418
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 99 */ 100 name_string = ACPI_MEM_ALLOCATE(size_needed); 101 if (!name_string) { 102 + ACPI_REPORT_ERROR(("Could not allocate size %d\n", 103 + size_needed)); 104 return_PTR(NULL); 105 } 106 ··· 167 char_buf[0] = *aml_address; 168 169 if ('0' <= char_buf[0] && char_buf[0] <= '9') { 170 + ACPI_REPORT_ERROR(("Invalid leading digit: %c\n", char_buf[0])); 171 return_ACPI_STATUS(AE_CTRL_PENDING); 172 } 173 ··· 211 * the required 4 212 */ 213 status = AE_AML_BAD_NAME; 214 + ACPI_REPORT_ERROR(("Bad character %02x in name, at %p\n", 215 + *aml_address, aml_address)); 216 } 217 218 *in_aml_address = ACPI_CAST_PTR(u8, aml_address); ··· 412 if (AE_CTRL_PENDING == status && has_prefix) { 413 /* Ran out of segments after processing a prefix */ 414 415 + ACPI_REPORT_ERROR(("Malformed Name at %p\n", name_string)); 416 status = AE_AML_BAD_NAME; 417 } 418
+23 -36
drivers/acpi/executer/exoparg1.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 111 112 default: /* Unknown opcode */ 113 114 - ACPI_REPORT_ERROR(("acpi_ex_opcode_0A_0T_1R: Unknown opcode %X\n", walk_state->opcode)); 115 status = AE_AML_BAD_OPCODE; 116 break; 117 } ··· 189 190 default: /* Unknown opcode */ 191 192 - ACPI_REPORT_ERROR(("acpi_ex_opcode_1A_0T_0R: Unknown opcode %X\n", walk_state->opcode)); 193 status = AE_AML_BAD_OPCODE; 194 break; 195 } ··· 229 230 default: /* Unknown opcode */ 231 232 - ACPI_REPORT_ERROR(("acpi_ex_opcode_1A_1T_0R: Unknown opcode %X\n", walk_state->opcode)); 233 status = AE_AML_BAD_OPCODE; 234 goto cleanup; 235 } ··· 349 /* Check the range of the digit */ 350 351 if (temp32 > 9) { 352 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 353 - "BCD digit too large (not decimal): 0x%X\n", 354 - temp32)); 355 356 status = AE_AML_NUMERIC_OVERFLOW; 357 goto cleanup; ··· 394 /* Overflow if there is any data left in Digit */ 395 396 if (digit > 0) { 397 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 398 - "Integer too large to convert to BCD: %8.8X%8.8X\n", 399 - ACPI_FORMAT_UINT64(operand 400 - [0]-> 401 - integer. 402 - value))); 403 status = AE_AML_NUMERIC_OVERFLOW; 404 goto cleanup; 405 } ··· 521 522 /* These are two obsolete opcodes */ 523 524 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 525 - "%s is obsolete and not implemented\n", 526 - acpi_ps_get_opcode_name(walk_state->opcode))); 527 status = AE_SUPPORT; 528 goto cleanup; 529 530 default: /* Unknown opcode */ 531 532 - ACPI_REPORT_ERROR(("acpi_ex_opcode_1A_1T_1R: Unknown opcode %X\n", walk_state->opcode)); 533 status = AE_AML_BAD_OPCODE; 534 goto cleanup; 535 } ··· 636 acpi_ex_resolve_operands(AML_LNOT_OP, &temp_desc, 637 walk_state); 638 if (ACPI_FAILURE(status)) { 639 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 640 - "%s: bad operand(s) %s\n", 641 - acpi_ps_get_opcode_name(walk_state-> 642 - opcode), 643 - acpi_format_exception(status))); 644 645 goto cleanup; 646 } ··· 738 break; 739 740 default: 741 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 742 - "size_of - Operand is not Buf/Int/Str/Pkg - found type %s\n", 743 - acpi_ut_get_type_name(type))); 744 status = AE_AML_OPERAND_TYPE; 745 goto cleanup; 746 } ··· 935 936 default: 937 938 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 939 - "Unknown Index target_type %X in obj %p\n", 940 - operand[0]->reference. 941 - target_type, 942 - operand[0])); 943 status = AE_AML_OPERAND_TYPE; 944 goto cleanup; 945 } ··· 961 break; 962 963 default: 964 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 965 - "Unknown opcode in ref(%p) - %X\n", 966 - operand[0], 967 - operand[0]->reference. 968 - opcode)); 969 970 status = AE_TYPE; 971 goto cleanup; ··· 971 972 default: 973 974 - ACPI_REPORT_ERROR(("acpi_ex_opcode_1A_0T_1R: Unknown opcode %X\n", walk_state->opcode)); 975 status = AE_AML_BAD_OPCODE; 976 goto cleanup; 977 }
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 111 112 default: /* Unknown opcode */ 113 114 + ACPI_REPORT_ERROR(("Unknown AML opcode %X\n", 115 + walk_state->opcode)); 116 status = AE_AML_BAD_OPCODE; 117 break; 118 } ··· 188 189 default: /* Unknown opcode */ 190 191 + ACPI_REPORT_ERROR(("Unknown AML opcode %X\n", 192 + walk_state->opcode)); 193 status = AE_AML_BAD_OPCODE; 194 break; 195 } ··· 227 228 default: /* Unknown opcode */ 229 230 + ACPI_REPORT_ERROR(("Unknown AML opcode %X\n", 231 + walk_state->opcode)); 232 status = AE_AML_BAD_OPCODE; 233 goto cleanup; 234 } ··· 346 /* Check the range of the digit */ 347 348 if (temp32 > 9) { 349 + ACPI_REPORT_ERROR(("BCD digit too large (not decimal): 0x%X\n", temp32)); 350 351 status = AE_AML_NUMERIC_OVERFLOW; 352 goto cleanup; ··· 393 /* Overflow if there is any data left in Digit */ 394 395 if (digit > 0) { 396 + ACPI_REPORT_ERROR(("Integer too large to convert to BCD: %8.8X%8.8X\n", ACPI_FORMAT_UINT64(operand[0]->integer.value))); 397 status = AE_AML_NUMERIC_OVERFLOW; 398 goto cleanup; 399 } ··· 525 526 /* These are two obsolete opcodes */ 527 528 + ACPI_REPORT_ERROR(("%s is obsolete and not implemented\n", 529 + acpi_ps_get_opcode_name(walk_state-> 530 + opcode))); 531 status = AE_SUPPORT; 532 goto cleanup; 533 534 default: /* Unknown opcode */ 535 536 + ACPI_REPORT_ERROR(("Unknown AML opcode %X\n", 537 + walk_state->opcode)); 538 status = AE_AML_BAD_OPCODE; 539 goto cleanup; 540 } ··· 639 acpi_ex_resolve_operands(AML_LNOT_OP, &temp_desc, 640 walk_state); 641 if (ACPI_FAILURE(status)) { 642 + ACPI_REPORT_ERROR(("%s: bad operand(s) %s\n", 643 + acpi_ps_get_opcode_name(walk_state-> 644 + opcode), 645 + acpi_format_exception(status))); 646 647 goto cleanup; 648 } ··· 742 break; 743 744 default: 745 + ACPI_REPORT_ERROR(("Operand is not Buf/Int/Str/Pkg - found type %s\n", acpi_ut_get_type_name(type))); 746 status = AE_AML_OPERAND_TYPE; 747 goto cleanup; 748 } ··· 941 942 default: 943 944 + ACPI_REPORT_ERROR(("Unknown Index target_type %X in obj %p\n", operand[0]->reference.target_type, operand[0])); 945 status = AE_AML_OPERAND_TYPE; 946 goto cleanup; 947 } ··· 971 break; 972 973 default: 974 + ACPI_REPORT_ERROR(("Unknown opcode in ref(%p) - %X\n", operand[0], operand[0]->reference.opcode)); 975 976 status = AE_TYPE; 977 goto cleanup; ··· 985 986 default: 987 988 + ACPI_REPORT_ERROR(("Unknown AML opcode %X\n", 989 + walk_state->opcode)); 990 status = AE_AML_BAD_OPCODE; 991 goto cleanup; 992 }
+12 -16
drivers/acpi/executer/exoparg2.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 111 /* Are notifies allowed on this object? */ 112 113 if (!acpi_ev_is_notify_object(node)) { 114 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 115 - "Unexpected notify object type [%s]\n", 116 - acpi_ut_get_type_name(node->type))); 117 118 status = AE_AML_OPERAND_TYPE; 119 break; ··· 155 156 default: 157 158 - ACPI_REPORT_ERROR(("acpi_ex_opcode_2A_0T_0R: Unknown opcode %X\n", walk_state->opcode)); 159 status = AE_AML_BAD_OPCODE; 160 } 161 ··· 220 221 default: 222 223 - ACPI_REPORT_ERROR(("acpi_ex_opcode_2A_2T_1R: Unknown opcode %X\n", walk_state->opcode)); 224 status = AE_AML_BAD_OPCODE; 225 goto cleanup; 226 } ··· 389 /* Object to be indexed is a Package */ 390 391 if (index >= operand[0]->package.count) { 392 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 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; 397 goto cleanup; 398 } ··· 402 /* Object to be indexed is a Buffer/String */ 403 404 if (index >= operand[0]->buffer.length) { 405 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 406 - "Index value (%X%8.8X) beyond end of buffer (%X)\n", 407 - ACPI_FORMAT_UINT64(index), 408 - operand[0]->buffer.length)); 409 status = AE_AML_BUFFER_LIMIT; 410 goto cleanup; 411 } ··· 434 435 default: 436 437 - ACPI_REPORT_ERROR(("acpi_ex_opcode_2A_1T_1R: Unknown opcode %X\n", walk_state->opcode)); 438 status = AE_AML_BAD_OPCODE; 439 break; 440 } ··· 539 540 default: 541 542 - ACPI_REPORT_ERROR(("acpi_ex_opcode_2A_0T_1R: Unknown opcode %X\n", walk_state->opcode)); 543 status = AE_AML_BAD_OPCODE; 544 goto cleanup; 545 }
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 111 /* Are notifies allowed on this object? */ 112 113 if (!acpi_ev_is_notify_object(node)) { 114 + ACPI_REPORT_ERROR(("Unexpected notify object type [%s]\n", acpi_ut_get_type_name(node->type))); 115 116 status = AE_AML_OPERAND_TYPE; 117 break; ··· 157 158 default: 159 160 + ACPI_REPORT_ERROR(("Unknown AML opcode %X\n", 161 + walk_state->opcode)); 162 status = AE_AML_BAD_OPCODE; 163 } 164 ··· 221 222 default: 223 224 + ACPI_REPORT_ERROR(("Unknown AML opcode %X\n", 225 + walk_state->opcode)); 226 status = AE_AML_BAD_OPCODE; 227 goto cleanup; 228 } ··· 389 /* Object to be indexed is a Package */ 390 391 if (index >= operand[0]->package.count) { 392 + ACPI_REPORT_ERROR(("Index value (%X%8.8X) beyond package end (%X)\n", ACPI_FORMAT_UINT64(index), operand[0]->package.count)); 393 status = AE_AML_PACKAGE_LIMIT; 394 goto cleanup; 395 } ··· 405 /* Object to be indexed is a Buffer/String */ 406 407 if (index >= operand[0]->buffer.length) { 408 + ACPI_REPORT_ERROR(("Index value (%X%8.8X) beyond end of buffer (%X)\n", ACPI_FORMAT_UINT64(index), operand[0]->buffer.length)); 409 status = AE_AML_BUFFER_LIMIT; 410 goto cleanup; 411 } ··· 440 441 default: 442 443 + ACPI_REPORT_ERROR(("Unknown AML opcode %X\n", 444 + walk_state->opcode)); 445 status = AE_AML_BAD_OPCODE; 446 break; 447 } ··· 544 545 default: 546 547 + ACPI_REPORT_ERROR(("Unknown AML opcode %X\n", 548 + walk_state->opcode)); 549 status = AE_AML_BAD_OPCODE; 550 goto cleanup; 551 }
+5 -3
drivers/acpi/executer/exoparg3.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 119 120 default: 121 122 - ACPI_REPORT_ERROR(("acpi_ex_opcode_3A_0T_0R: Unknown opcode %X\n", walk_state->opcode)); 123 status = AE_AML_BAD_OPCODE; 124 goto cleanup; 125 } ··· 243 244 default: 245 246 - ACPI_REPORT_ERROR(("acpi_ex_opcode_3A_0T_0R: Unknown opcode %X\n", walk_state->opcode)); 247 status = AE_AML_BAD_OPCODE; 248 goto cleanup; 249 }
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 119 120 default: 121 122 + ACPI_REPORT_ERROR(("Unknown AML opcode %X\n", 123 + walk_state->opcode)); 124 status = AE_AML_BAD_OPCODE; 125 goto cleanup; 126 } ··· 242 243 default: 244 245 + ACPI_REPORT_ERROR(("Unknown AML opcode %X\n", 246 + walk_state->opcode)); 247 status = AE_AML_BAD_OPCODE; 248 goto cleanup; 249 }
+5 -8
drivers/acpi/executer/exoparg6.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 234 235 if ((operand[1]->integer.value > MAX_MATCH_OPERATOR) || 236 (operand[3]->integer.value > MAX_MATCH_OPERATOR)) { 237 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 238 - "Match operator out of range\n")); 239 status = AE_AML_OPERAND_VALUE; 240 goto cleanup; 241 } ··· 243 244 index = operand[5]->integer.value; 245 if (index >= operand[0]->package.count) { 246 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 247 - "Index (%X%8.8X) beyond package end (%X)\n", 248 - ACPI_FORMAT_UINT64(index), 249 - operand[0]->package.count)); 250 status = AE_AML_PACKAGE_LIMIT; 251 goto cleanup; 252 } ··· 312 313 default: 314 315 - ACPI_REPORT_ERROR(("acpi_ex_opcode_6A_0T_1R: Unknown opcode %X\n", walk_state->opcode)); 316 status = AE_AML_BAD_OPCODE; 317 goto cleanup; 318 }
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 234 235 if ((operand[1]->integer.value > MAX_MATCH_OPERATOR) || 236 (operand[3]->integer.value > MAX_MATCH_OPERATOR)) { 237 + ACPI_REPORT_ERROR(("Match operator out of range\n")); 238 status = AE_AML_OPERAND_VALUE; 239 goto cleanup; 240 } ··· 244 245 index = operand[5]->integer.value; 246 if (index >= operand[0]->package.count) { 247 + ACPI_REPORT_ERROR(("Index (%X%8.8X) beyond package end (%X)\n", ACPI_FORMAT_UINT64(index), operand[0]->package.count)); 248 status = AE_AML_PACKAGE_LIMIT; 249 goto cleanup; 250 } ··· 316 317 default: 318 319 + ACPI_REPORT_ERROR(("Unknown AML opcode %X\n", 320 + walk_state->opcode)); 321 status = AE_AML_BAD_OPCODE; 322 goto cleanup; 323 }
+4 -7
drivers/acpi/executer/exprep.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 274 default: 275 /* Invalid field access type */ 276 277 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 278 - "Unknown field access type %X\n", access)); 279 return_UINT32(0); 280 } 281 ··· 421 422 if (info->field_type != ACPI_TYPE_LOCAL_INDEX_FIELD) { 423 if (!info->region_node) { 424 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Null region_node\n")); 425 return_ACPI_STATUS(AE_AML_NO_OPERAND); 426 } 427 428 type = acpi_ns_get_type(info->region_node); 429 if (type != ACPI_TYPE_REGION) { 430 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 431 - "Needed Region, found type %X (%s)\n", 432 - type, acpi_ut_get_type_name(type))); 433 434 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 435 }
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 274 default: 275 /* Invalid field access type */ 276 277 + ACPI_REPORT_ERROR(("Unknown field access type %X\n", access)); 278 return_UINT32(0); 279 } 280 ··· 422 423 if (info->field_type != ACPI_TYPE_LOCAL_INDEX_FIELD) { 424 if (!info->region_node) { 425 + ACPI_REPORT_ERROR(("Null region_node\n")); 426 return_ACPI_STATUS(AE_AML_NO_OPERAND); 427 } 428 429 type = acpi_ns_get_type(info->region_node); 430 if (type != ACPI_TYPE_REGION) { 431 + ACPI_REPORT_ERROR(("Needed Region, found type %X (%s)\n", type, acpi_ut_get_type_name(type))); 432 433 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 434 }
+4 -8
drivers/acpi/executer/exregion.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 103 break; 104 105 default: 106 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 107 - "Invalid system_memory width %d\n", 108 - bit_width)); 109 return_ACPI_STATUS(AE_AML_OPERAND_VALUE); 110 } 111 ··· 158 (void **)&mem_info-> 159 mapped_logical_address); 160 if (ACPI_FAILURE(status)) { 161 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 162 - "Could not map memory at %8.8X%8.8X, size %X\n", 163 - ACPI_FORMAT_UINT64(address), 164 - (u32) window_size)); 165 mem_info->mapped_length = 0; 166 return_ACPI_STATUS(status); 167 }
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 103 break; 104 105 default: 106 + ACPI_REPORT_ERROR(("Invalid system_memory width %d\n", 107 + bit_width)); 108 return_ACPI_STATUS(AE_AML_OPERAND_VALUE); 109 } 110 ··· 159 (void **)&mem_info-> 160 mapped_logical_address); 161 if (ACPI_FAILURE(status)) { 162 + ACPI_REPORT_ERROR(("Could not map memory at %8.8X%8.8X, size %X\n", ACPI_FORMAT_UINT64(address), (u32) window_size)); 163 mem_info->mapped_length = 0; 164 return_ACPI_STATUS(status); 165 }
+19 -31
drivers/acpi/executer/exresnte.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 122 } 123 124 if (!source_desc) { 125 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 126 - "No object attached to node %p\n", node)); 127 return_ACPI_STATUS(AE_AML_NO_OPERAND); 128 } 129 ··· 134 case ACPI_TYPE_PACKAGE: 135 136 if (ACPI_GET_OBJECT_TYPE(source_desc) != ACPI_TYPE_PACKAGE) { 137 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 138 - "Object not a Package, type %s\n", 139 - acpi_ut_get_object_type_name 140 - (source_desc))); 141 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 142 } 143 ··· 152 case ACPI_TYPE_BUFFER: 153 154 if (ACPI_GET_OBJECT_TYPE(source_desc) != ACPI_TYPE_BUFFER) { 155 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 156 - "Object not a Buffer, type %s\n", 157 - acpi_ut_get_object_type_name 158 - (source_desc))); 159 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 160 } 161 ··· 170 case ACPI_TYPE_STRING: 171 172 if (ACPI_GET_OBJECT_TYPE(source_desc) != ACPI_TYPE_STRING) { 173 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 174 - "Object not a String, type %s\n", 175 - acpi_ut_get_object_type_name 176 - (source_desc))); 177 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 178 } 179 ··· 185 case ACPI_TYPE_INTEGER: 186 187 if (ACPI_GET_OBJECT_TYPE(source_desc) != ACPI_TYPE_INTEGER) { 188 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 189 - "Object not a Integer, type %s\n", 190 - acpi_ut_get_object_type_name 191 - (source_desc))); 192 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 193 } 194 ··· 231 232 case ACPI_TYPE_ANY: 233 234 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 235 - "Untyped entry %p, no attached object!\n", 236 - node)); 237 238 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); /* Cannot be AE_TYPE */ 239 ··· 251 default: 252 /* No named references are allowed here */ 253 254 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 255 - "Unsupported Reference opcode %X (%s)\n", 256 - source_desc->reference.opcode, 257 - acpi_ps_get_opcode_name(source_desc-> 258 - reference. 259 - opcode))); 260 261 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 262 } ··· 261 262 /* Default case is for unknown types */ 263 264 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 265 - "Node %p - Unknown object type %X\n", 266 - node, entry_type)); 267 268 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 269
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 122 } 123 124 if (!source_desc) { 125 + ACPI_REPORT_ERROR(("No object attached to node %p\n", node)); 126 return_ACPI_STATUS(AE_AML_NO_OPERAND); 127 } 128 ··· 135 case ACPI_TYPE_PACKAGE: 136 137 if (ACPI_GET_OBJECT_TYPE(source_desc) != ACPI_TYPE_PACKAGE) { 138 + ACPI_REPORT_ERROR(("Object not a Package, type %s\n", 139 + acpi_ut_get_object_type_name 140 + (source_desc))); 141 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 142 } 143 ··· 154 case ACPI_TYPE_BUFFER: 155 156 if (ACPI_GET_OBJECT_TYPE(source_desc) != ACPI_TYPE_BUFFER) { 157 + ACPI_REPORT_ERROR(("Object not a Buffer, type %s\n", 158 + acpi_ut_get_object_type_name 159 + (source_desc))); 160 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 161 } 162 ··· 173 case ACPI_TYPE_STRING: 174 175 if (ACPI_GET_OBJECT_TYPE(source_desc) != ACPI_TYPE_STRING) { 176 + ACPI_REPORT_ERROR(("Object not a String, type %s\n", 177 + acpi_ut_get_object_type_name 178 + (source_desc))); 179 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 180 } 181 ··· 189 case ACPI_TYPE_INTEGER: 190 191 if (ACPI_GET_OBJECT_TYPE(source_desc) != ACPI_TYPE_INTEGER) { 192 + ACPI_REPORT_ERROR(("Object not a Integer, type %s\n", 193 + acpi_ut_get_object_type_name 194 + (source_desc))); 195 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 196 } 197 ··· 236 237 case ACPI_TYPE_ANY: 238 239 + ACPI_REPORT_ERROR(("Untyped entry %p, no attached object!\n", 240 + node)); 241 242 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); /* Cannot be AE_TYPE */ 243 ··· 257 default: 258 /* No named references are allowed here */ 259 260 + ACPI_REPORT_ERROR(("Unsupported Reference opcode %X (%s)\n", source_desc->reference.opcode, acpi_ps_get_opcode_name(source_desc->reference.opcode))); 261 262 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 263 } ··· 272 273 /* Default case is for unknown types */ 274 275 + ACPI_REPORT_ERROR(("Node %p - Unknown object type %X\n", 276 + node, entry_type)); 277 278 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 279
+16 -12
drivers/acpi/executer/exresolv.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 81 ACPI_FUNCTION_TRACE_PTR("ex_resolve_to_value", stack_ptr); 82 83 if (!stack_ptr || !*stack_ptr) { 84 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Internal - null pointer\n")); 85 return_ACPI_STATUS(AE_AML_NO_OPERAND); 86 } 87 ··· 97 } 98 99 if (!*stack_ptr) { 100 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 101 - "Internal - null pointer\n")); 102 return_ACPI_STATUS(AE_AML_NO_OPERAND); 103 } 104 } ··· 227 * A NULL object descriptor means an unitialized element of 228 * the package, can't dereference it 229 */ 230 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 231 - "Attempt to deref an Index to NULL pkg element Idx=%p\n", 232 - stack_desc)); 233 status = AE_AML_UNINITIALIZED_ELEMENT; 234 } 235 break; ··· 236 237 /* Invalid reference object */ 238 239 - ACPI_REPORT_ERROR(("During resolve, Unknown target_type %X in Index/Reference obj %p\n", stack_desc->reference.target_type, stack_desc)); 240 status = AE_AML_INTERNAL; 241 break; 242 } ··· 261 262 default: 263 264 - ACPI_REPORT_ERROR(("During resolve, Unknown Reference opcode %X (%s) in %p\n", opcode, acpi_ps_get_opcode_name(opcode), stack_desc)); 265 status = AE_AML_INTERNAL; 266 break; 267 } ··· 383 384 if (ACPI_GET_DESCRIPTOR_TYPE(node) != 385 ACPI_DESC_TYPE_NAMED) { 386 - ACPI_REPORT_ERROR(("acpi_ex_resolve_multiple: Not a NS node %p [%s]\n", node, acpi_ut_get_descriptor_name(node))); 387 return_ACPI_STATUS(AE_AML_INTERNAL); 388 } 389 ··· 442 443 if (ACPI_GET_DESCRIPTOR_TYPE(node) != 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))); 446 return_ACPI_STATUS(AE_AML_INTERNAL); 447 } 448 ··· 514 515 default: 516 517 - ACPI_REPORT_ERROR(("acpi_ex_resolve_multiple: Unknown Reference subtype %X\n", obj_desc->reference.opcode)); 518 return_ACPI_STATUS(AE_AML_INTERNAL); 519 } 520 }
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 81 ACPI_FUNCTION_TRACE_PTR("ex_resolve_to_value", stack_ptr); 82 83 if (!stack_ptr || !*stack_ptr) { 84 + ACPI_REPORT_ERROR(("Internal - null pointer\n")); 85 return_ACPI_STATUS(AE_AML_NO_OPERAND); 86 } 87 ··· 97 } 98 99 if (!*stack_ptr) { 100 + ACPI_REPORT_ERROR(("Internal - null pointer\n")); 101 return_ACPI_STATUS(AE_AML_NO_OPERAND); 102 } 103 } ··· 228 * A NULL object descriptor means an unitialized element of 229 * the package, can't dereference it 230 */ 231 + ACPI_REPORT_ERROR(("Attempt to deref an Index to NULL pkg element Idx=%p\n", stack_desc)); 232 status = AE_AML_UNINITIALIZED_ELEMENT; 233 } 234 break; ··· 239 240 /* Invalid reference object */ 241 242 + 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; 244 break; 245 } ··· 264 265 default: 266 267 + 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; 269 break; 270 } ··· 386 387 if (ACPI_GET_DESCRIPTOR_TYPE(node) != 388 ACPI_DESC_TYPE_NAMED) { 389 + ACPI_REPORT_ERROR(("Not a NS node %p [%s]\n", 390 + node, 391 + acpi_ut_get_descriptor_name 392 + (node))); 393 return_ACPI_STATUS(AE_AML_INTERNAL); 394 } 395 ··· 442 443 if (ACPI_GET_DESCRIPTOR_TYPE(node) != 444 ACPI_DESC_TYPE_NAMED) { 445 + ACPI_REPORT_ERROR(("Not a NS node %p [%s]\n", 446 + node, 447 + acpi_ut_get_descriptor_name 448 + (node))); 449 return_ACPI_STATUS(AE_AML_INTERNAL); 450 } 451 ··· 511 512 default: 513 514 + ACPI_REPORT_ERROR(("Unknown Reference subtype %X\n", 515 + obj_desc->reference.opcode)); 516 return_ACPI_STATUS(AE_AML_INTERNAL); 517 } 518 }
+24 -65
drivers/acpi/executer/exresop.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 73 acpi_ex_check_object_type(acpi_object_type type_needed, 74 acpi_object_type this_type, void *object) 75 { 76 - ACPI_FUNCTION_NAME("ex_check_object_type"); 77 78 if (type_needed == ACPI_TYPE_ANY) { 79 /* All types OK, so we don't perform any typechecks */ ··· 95 } 96 97 if (type_needed != this_type) { 98 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 99 - "Needed [%s], found [%s] %p\n", 100 - acpi_ut_get_type_name(type_needed), 101 - acpi_ut_get_type_name(this_type), object)); 102 103 return (AE_AML_OPERAND_TYPE); 104 } ··· 150 151 arg_types = op_info->runtime_args; 152 if (arg_types == ARGI_INVALID_OPCODE) { 153 - ACPI_REPORT_ERROR(("resolve_operands: %X is not a valid AML opcode\n", opcode)); 154 155 return_ACPI_STATUS(AE_AML_INTERNAL); 156 } ··· 168 */ 169 while (GET_CURRENT_ARG_TYPE(arg_types)) { 170 if (!stack_ptr || !*stack_ptr) { 171 - ACPI_REPORT_ERROR(("resolve_operands: Null stack entry at %p\n", stack_ptr)); 172 173 return_ACPI_STATUS(AE_AML_INTERNAL); 174 } ··· 198 /* Check for bad acpi_object_type */ 199 200 if (!acpi_ut_valid_object_type(object_type)) { 201 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 202 - "Bad operand object type [%X]\n", 203 - object_type)); 204 205 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 206 } ··· 236 break; 237 238 default: 239 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 240 - "Operand is a Reference, Unknown Reference Opcode %X [%s]\n", 241 - obj_desc->reference. 242 - opcode, 243 - (acpi_ps_get_opcode_info 244 - (obj_desc->reference. 245 - opcode))->name)); 246 247 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 248 } ··· 247 248 /* Invalid descriptor */ 249 250 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 251 - "Invalid descriptor %p [%s]\n", 252 - obj_desc, 253 - acpi_ut_get_descriptor_name 254 - (obj_desc))); 255 256 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 257 } ··· 408 acpi_ex_convert_to_integer(obj_desc, stack_ptr, 16); 409 if (ACPI_FAILURE(status)) { 410 if (status == AE_TYPE) { 411 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 412 - "Needed [Integer/String/Buffer], found [%s] %p\n", 413 - acpi_ut_get_object_type_name 414 - (obj_desc), 415 - obj_desc)); 416 417 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 418 } ··· 431 status = acpi_ex_convert_to_buffer(obj_desc, stack_ptr); 432 if (ACPI_FAILURE(status)) { 433 if (status == AE_TYPE) { 434 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 435 - "Needed [Integer/String/Buffer], found [%s] %p\n", 436 - acpi_ut_get_object_type_name 437 - (obj_desc), 438 - obj_desc)); 439 440 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 441 } ··· 455 ACPI_IMPLICIT_CONVERT_HEX); 456 if (ACPI_FAILURE(status)) { 457 if (status == AE_TYPE) { 458 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 459 - "Needed [Integer/String/Buffer], found [%s] %p\n", 460 - acpi_ut_get_object_type_name 461 - (obj_desc), 462 - obj_desc)); 463 464 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 465 } ··· 481 break; 482 483 default: 484 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 485 - "Needed [Integer/String/Buffer], found [%s] %p\n", 486 - acpi_ut_get_object_type_name 487 - (obj_desc), obj_desc)); 488 489 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 490 } ··· 515 break; 516 517 default: 518 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 519 - "Needed [Integer/String/Buffer], found [%s] %p\n", 520 - acpi_ut_get_object_type_name 521 - (obj_desc), obj_desc)); 522 523 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 524 } ··· 539 break; 540 541 default: 542 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 543 - "Needed [Buffer/String/Package/Reference], found [%s] %p\n", 544 - acpi_ut_get_object_type_name 545 - (obj_desc), obj_desc)); 546 547 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 548 } ··· 558 break; 559 560 default: 561 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 562 - "Needed [Buffer/String/Package], found [%s] %p\n", 563 - acpi_ut_get_object_type_name 564 - (obj_desc), obj_desc)); 565 566 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 567 } ··· 578 break; 579 580 default: 581 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 582 - "Needed [Region/region_field], found [%s] %p\n", 583 - acpi_ut_get_object_type_name 584 - (obj_desc), obj_desc)); 585 586 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 587 } ··· 620 break; 621 } 622 623 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 624 - "Needed Integer/Buffer/String/Package/Ref/Ddb], found [%s] %p\n", 625 - acpi_ut_get_object_type_name 626 - (obj_desc), obj_desc)); 627 628 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 629 } ··· 630 631 /* Unknown type */ 632 633 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 634 - "Internal - Unknown ARGI (required operand) type %X\n", 635 - this_arg_type)); 636 637 return_ACPI_STATUS(AE_BAD_PARAMETER); 638 }
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 73 acpi_ex_check_object_type(acpi_object_type type_needed, 74 acpi_object_type this_type, void *object) 75 { 76 + ACPI_FUNCTION_ENTRY(); 77 78 if (type_needed == ACPI_TYPE_ANY) { 79 /* All types OK, so we don't perform any typechecks */ ··· 95 } 96 97 if (type_needed != this_type) { 98 + ACPI_REPORT_ERROR(("Needed type [%s], found [%s] %p\n", 99 + acpi_ut_get_type_name(type_needed), 100 + acpi_ut_get_type_name(this_type), object)); 101 102 return (AE_AML_OPERAND_TYPE); 103 } ··· 151 152 arg_types = op_info->runtime_args; 153 if (arg_types == ARGI_INVALID_OPCODE) { 154 + ACPI_REPORT_ERROR(("Unknown AML opcode %X\n", opcode)); 155 156 return_ACPI_STATUS(AE_AML_INTERNAL); 157 } ··· 169 */ 170 while (GET_CURRENT_ARG_TYPE(arg_types)) { 171 if (!stack_ptr || !*stack_ptr) { 172 + ACPI_REPORT_ERROR(("Null stack entry at %p\n", 173 + stack_ptr)); 174 175 return_ACPI_STATUS(AE_AML_INTERNAL); 176 } ··· 198 /* Check for bad acpi_object_type */ 199 200 if (!acpi_ut_valid_object_type(object_type)) { 201 + ACPI_REPORT_ERROR(("Bad operand object type [%X]\n", object_type)); 202 203 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 204 } ··· 238 break; 239 240 default: 241 + ACPI_REPORT_ERROR(("Operand is a Reference, Unknown Reference Opcode: %X\n", obj_desc->reference.opcode)); 242 243 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 244 } ··· 255 256 /* Invalid descriptor */ 257 258 + ACPI_REPORT_ERROR(("Invalid descriptor %p [%s]\n", 259 + obj_desc, 260 + acpi_ut_get_descriptor_name 261 + (obj_desc))); 262 263 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 264 } ··· 417 acpi_ex_convert_to_integer(obj_desc, stack_ptr, 16); 418 if (ACPI_FAILURE(status)) { 419 if (status == AE_TYPE) { 420 + ACPI_REPORT_ERROR(("Needed [Integer/String/Buffer], found [%s] %p\n", acpi_ut_get_object_type_name(obj_desc), obj_desc)); 421 422 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 423 } ··· 444 status = acpi_ex_convert_to_buffer(obj_desc, stack_ptr); 445 if (ACPI_FAILURE(status)) { 446 if (status == AE_TYPE) { 447 + ACPI_REPORT_ERROR(("Needed [Integer/String/Buffer], found [%s] %p\n", acpi_ut_get_object_type_name(obj_desc), obj_desc)); 448 449 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 450 } ··· 472 ACPI_IMPLICIT_CONVERT_HEX); 473 if (ACPI_FAILURE(status)) { 474 if (status == AE_TYPE) { 475 + ACPI_REPORT_ERROR(("Needed [Integer/String/Buffer], found [%s] %p\n", acpi_ut_get_object_type_name(obj_desc), obj_desc)); 476 477 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 478 } ··· 502 break; 503 504 default: 505 + ACPI_REPORT_ERROR(("Needed [Integer/String/Buffer], found [%s] %p\n", acpi_ut_get_object_type_name(obj_desc), obj_desc)); 506 507 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 508 } ··· 539 break; 540 541 default: 542 + ACPI_REPORT_ERROR(("Needed [Integer/String/Buffer], found [%s] %p\n", acpi_ut_get_object_type_name(obj_desc), obj_desc)); 543 544 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 545 } ··· 566 break; 567 568 default: 569 + ACPI_REPORT_ERROR(("Needed [Buffer/String/Package/Reference], found [%s] %p\n", acpi_ut_get_object_type_name(obj_desc), obj_desc)); 570 571 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 572 } ··· 588 break; 589 590 default: 591 + ACPI_REPORT_ERROR(("Needed [Buffer/String/Package], found [%s] %p\n", acpi_ut_get_object_type_name(obj_desc), obj_desc)); 592 593 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 594 } ··· 611 break; 612 613 default: 614 + ACPI_REPORT_ERROR(("Needed [Region/region_field], found [%s] %p\n", acpi_ut_get_object_type_name(obj_desc), obj_desc)); 615 616 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 617 } ··· 656 break; 657 } 658 659 + ACPI_REPORT_ERROR(("Needed Integer/Buffer/String/Package/Ref/Ddb], found [%s] %p\n", acpi_ut_get_object_type_name(obj_desc), obj_desc)); 660 661 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 662 } ··· 669 670 /* Unknown type */ 671 672 + ACPI_REPORT_ERROR(("Internal - Unknown ARGI (required operand) type %X\n", this_arg_type)); 673 674 return_ACPI_STATUS(AE_BAD_PARAMETER); 675 }
+6 -13
drivers/acpi/executer/exstore.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 250 /* Validate parameters */ 251 252 if (!source_desc || !dest_desc) { 253 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Null parameter\n")); 254 return_ACPI_STATUS(AE_AML_NO_OPERAND); 255 } 256 ··· 290 291 /* Destination is not a Reference object */ 292 293 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 294 - "Target is not a Reference or Constant object - %s [%p]\n", 295 - acpi_ut_get_object_type_name(dest_desc), 296 - dest_desc)); 297 298 ACPI_DUMP_STACK_ENTRY(source_desc); 299 ACPI_DUMP_STACK_ENTRY(dest_desc); ··· 357 358 default: 359 360 - ACPI_REPORT_ERROR(("ex_store: Unknown Reference opcode %X\n", 361 ref_desc->reference.opcode)); 362 ACPI_DUMP_ENTRY(ref_desc, ACPI_LV_ERROR); 363 ··· 487 488 /* All other types are invalid */ 489 490 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 491 - "Source must be Integer/Buffer/String type, not %s\n", 492 - acpi_ut_get_object_type_name 493 - (source_desc))); 494 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 495 } 496 ··· 497 break; 498 499 default: 500 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 501 - "Target is not a Package or buffer_field\n")); 502 status = AE_AML_OPERAND_TYPE; 503 break; 504 }
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 250 /* Validate parameters */ 251 252 if (!source_desc || !dest_desc) { 253 + ACPI_REPORT_ERROR(("Null parameter\n")); 254 return_ACPI_STATUS(AE_AML_NO_OPERAND); 255 } 256 ··· 290 291 /* Destination is not a Reference object */ 292 293 + ACPI_REPORT_ERROR(("Target is not a Reference or Constant object - %s [%p]\n", acpi_ut_get_object_type_name(dest_desc), dest_desc)); 294 295 ACPI_DUMP_STACK_ENTRY(source_desc); 296 ACPI_DUMP_STACK_ENTRY(dest_desc); ··· 360 361 default: 362 363 + ACPI_REPORT_ERROR(("Unknown Reference opcode %X\n", 364 ref_desc->reference.opcode)); 365 ACPI_DUMP_ENTRY(ref_desc, ACPI_LV_ERROR); 366 ··· 490 491 /* All other types are invalid */ 492 493 + ACPI_REPORT_ERROR(("Source must be Integer/Buffer/String type, not %s\n", acpi_ut_get_object_type_name(source_desc))); 494 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 495 } 496 ··· 503 break; 504 505 default: 506 + ACPI_REPORT_ERROR(("Target is not a Package or buffer_field\n")); 507 status = AE_AML_OPERAND_TYPE; 508 break; 509 }
+4 -9
drivers/acpi/executer/exstoren.c
··· 7 *****************************************************************************/ 8 9 /* 10 - * Copyright (C) 2000 - 2005, R. Byron Moore 11 * All rights reserved. 12 * 13 * Redistribution and use in source and binary forms, with or without ··· 123 && (source_desc->reference.opcode == AML_LOAD_OP))) { 124 /* Conversion successful but still not a valid type */ 125 126 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 127 - "Cannot assign type %s to %s (must be type Int/Str/Buf)\n", 128 - acpi_ut_get_object_type_name 129 - (source_desc), 130 - acpi_ut_get_type_name(target_type))); 131 status = AE_AML_OPERAND_TYPE; 132 } 133 break; ··· 276 /* 277 * All other types come here. 278 */ 279 - ACPI_DEBUG_PRINT((ACPI_DB_WARN, 280 - "Store into type %s not implemented\n", 281 - acpi_ut_get_object_type_name(dest_desc))); 282 283 status = AE_NOT_IMPLEMENTED; 284 break;
··· 7 *****************************************************************************/ 8 9 /* 10 + * Copyright (C) 2000 - 2006, R. Byron Moore 11 * All rights reserved. 12 * 13 * Redistribution and use in source and binary forms, with or without ··· 123 && (source_desc->reference.opcode == AML_LOAD_OP))) { 124 /* Conversion successful but still not a valid type */ 125 126 + ACPI_REPORT_ERROR(("Cannot assign type %s to %s (must be type Int/Str/Buf)\n", acpi_ut_get_object_type_name(source_desc), acpi_ut_get_type_name(target_type))); 127 status = AE_AML_OPERAND_TYPE; 128 } 129 break; ··· 280 /* 281 * All other types come here. 282 */ 283 + ACPI_REPORT_WARNING(("Store into type %s not implemented\n", 284 + acpi_ut_get_object_type_name(dest_desc))); 285 286 status = AE_NOT_IMPLEMENTED; 287 break;
+1 -1
drivers/acpi/executer/exstorob.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
+2 -2
drivers/acpi/executer/exsystem.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 129 * (ACPI specifies 100 usec as max, but this gives some slack in 130 * order to support existing BIOSs) 131 */ 132 - ACPI_REPORT_ERROR(("Stall: Time parameter is too large (%d)\n", 133 how_long)); 134 status = AE_AML_OPERAND_VALUE; 135 } else {
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 129 * (ACPI specifies 100 usec as max, but this gives some slack in 130 * order to support existing BIOSs) 131 */ 132 + ACPI_REPORT_ERROR(("Time parameter is too large (%d)\n", 133 how_long)); 134 status = AE_AML_OPERAND_VALUE; 135 } else {
+2 -4
drivers/acpi/executer/exutils.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 200 if (ACPI_SUCCESS(status)) { 201 locked = TRUE; 202 } else { 203 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 204 - "Could not acquire Global Lock, %s\n", 205 - acpi_format_exception(status))); 206 } 207 } 208
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 200 if (ACPI_SUCCESS(status)) { 201 locked = TRUE; 202 } else { 203 + ACPI_REPORT_ERROR(("Could not acquire Global Lock, %s\n", acpi_format_exception(status))); 204 } 205 } 206
+3 -4
drivers/acpi/hardware/hwacpi.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 68 /* We must have the ACPI tables by the time we get here */ 69 70 if (!acpi_gbl_FADT) { 71 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "No FADT is present\n")); 72 - 73 return_ACPI_STATUS(AE_NO_ACPI_TABLES); 74 } 75 ··· 107 * system does not support mode transition. 108 */ 109 if (!acpi_gbl_FADT->smi_cmd) { 110 - ACPI_REPORT_ERROR(("No SMI_CMD in FADT, mode transition failed.\n")); 111 return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE); 112 } 113
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 68 /* We must have the ACPI tables by the time we get here */ 69 70 if (!acpi_gbl_FADT) { 71 + ACPI_REPORT_ERROR(("No FADT is present\n")); 72 return_ACPI_STATUS(AE_NO_ACPI_TABLES); 73 } 74 ··· 108 * system does not support mode transition. 109 */ 110 if (!acpi_gbl_FADT->smi_cmd) { 111 + ACPI_REPORT_ERROR(("No SMI_CMD in FADT, mode transition failed\n")); 112 return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE); 113 } 114
+1 -1
drivers/acpi/hardware/hwgpe.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
+10 -19
drivers/acpi/hardware/hwregs.c
··· 7 ******************************************************************************/ 8 9 /* 10 - * Copyright (C) 2000 - 2005, R. Byron Moore 11 * All rights reserved. 12 * 13 * Redistribution and use in source and binary forms, with or without ··· 202 } 203 204 if (ACPI_FAILURE(status)) { 205 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 206 - "%s While evaluating sleep_state [%s], bad Sleep object %p type %s\n", 207 - acpi_format_exception(status), 208 - sleep_state_name, info.return_object, 209 - acpi_ut_get_object_type_name(info. 210 - return_object))); 211 } 212 213 acpi_ut_remove_reference(info.return_object); ··· 225 226 struct acpi_bit_register_info *acpi_hw_get_bit_register_info(u32 register_id) 227 { 228 - ACPI_FUNCTION_NAME("hw_get_bit_register_info"); 229 230 if (register_id > ACPI_BITREG_MAX) { 231 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 232 - "Invalid bit_register ID: %X\n", 233 - register_id)); 234 return (NULL); 235 } 236 ··· 564 break; 565 566 default: 567 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Unknown Register ID: %X\n", 568 - register_id)); 569 status = AE_BAD_PARAMETER; 570 break; 571 } ··· 759 break; 760 761 default: 762 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 763 - "Unsupported address space: %X\n", 764 - reg->address_space_id)); 765 return (AE_BAD_PARAMETER); 766 } 767 ··· 829 break; 830 831 default: 832 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 833 - "Unsupported address space: %X\n", 834 - reg->address_space_id)); 835 return (AE_BAD_PARAMETER); 836 } 837
··· 7 ******************************************************************************/ 8 9 /* 10 + * Copyright (C) 2000 - 2006, R. Byron Moore 11 * All rights reserved. 12 * 13 * Redistribution and use in source and binary forms, with or without ··· 202 } 203 204 if (ACPI_FAILURE(status)) { 205 + ACPI_REPORT_ERROR(("%s While evaluating sleep_state [%s], bad Sleep object %p type %s\n", acpi_format_exception(status), sleep_state_name, info.return_object, acpi_ut_get_object_type_name(info.return_object))); 206 } 207 208 acpi_ut_remove_reference(info.return_object); ··· 230 231 struct acpi_bit_register_info *acpi_hw_get_bit_register_info(u32 register_id) 232 { 233 + ACPI_FUNCTION_ENTRY(); 234 235 if (register_id > ACPI_BITREG_MAX) { 236 + ACPI_REPORT_ERROR(("Invalid bit_register ID: %X\n", 237 + register_id)); 238 return (NULL); 239 } 240 ··· 570 break; 571 572 default: 573 + ACPI_REPORT_ERROR(("Unknown Register ID: %X\n", register_id)); 574 status = AE_BAD_PARAMETER; 575 break; 576 } ··· 766 break; 767 768 default: 769 + ACPI_REPORT_ERROR(("Unsupported address space: %X\n", 770 + reg->address_space_id)); 771 return (AE_BAD_PARAMETER); 772 } 773 ··· 837 break; 838 839 default: 840 + ACPI_REPORT_ERROR(("Unsupported address space: %X\n", 841 + reg->address_space_id)); 842 return (AE_BAD_PARAMETER); 843 } 844
+1 -1
drivers/acpi/hardware/hwsleep.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
+1 -1
drivers/acpi/hardware/hwtimer.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
+8 -10
drivers/acpi/namespace/nsaccess.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 110 ACPI_NS_NO_UPSEARCH, NULL, &new_node); 111 112 if (ACPI_FAILURE(status) || (!new_node)) { /* Must be on same line for code converter */ 113 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 114 - "Could not create predefined name %s, %s\n", 115 - init_val->name, 116 - acpi_format_exception(status))); 117 } 118 119 /* ··· 121 if (init_val->val) { 122 status = acpi_os_predefined_override(init_val, &val); 123 if (ACPI_FAILURE(status)) { 124 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 125 - "Could not override predefined %s\n", 126 - init_val->name)); 127 } 128 129 if (!val) { ··· 334 prefix_node = scope_info->scope.node; 335 if (ACPI_GET_DESCRIPTOR_TYPE(prefix_node) != 336 ACPI_DESC_TYPE_NAMED) { 337 - ACPI_REPORT_ERROR(("ns_lookup: %p is not a namespace node [%s]\n", prefix_node, acpi_ut_get_descriptor_name(prefix_node))); 338 return_ACPI_STATUS(AE_AML_INTERNAL); 339 } 340 ··· 598 (this_node->type != type_to_check_for)) { 599 /* Complain about a type mismatch */ 600 601 - ACPI_REPORT_WARNING(("ns_lookup: Type mismatch on %4.4s (%s), searching for (%s)\n", (char *)&simple_name, acpi_ut_get_type_name(this_node->type), acpi_ut_get_type_name(type_to_check_for))); 602 } 603 604 /*
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 110 ACPI_NS_NO_UPSEARCH, NULL, &new_node); 111 112 if (ACPI_FAILURE(status) || (!new_node)) { /* Must be on same line for code converter */ 113 + ACPI_REPORT_ERROR(("Could not create predefined name %s, %s\n", init_val->name, acpi_format_exception(status))); 114 } 115 116 /* ··· 124 if (init_val->val) { 125 status = acpi_os_predefined_override(init_val, &val); 126 if (ACPI_FAILURE(status)) { 127 + ACPI_REPORT_ERROR(("Could not override predefined %s\n", init_val->name)); 128 } 129 130 if (!val) { ··· 339 prefix_node = scope_info->scope.node; 340 if (ACPI_GET_DESCRIPTOR_TYPE(prefix_node) != 341 ACPI_DESC_TYPE_NAMED) { 342 + ACPI_REPORT_ERROR(("%p is not a namespace node [%s]\n", 343 + prefix_node, 344 + acpi_ut_get_descriptor_name 345 + (prefix_node))); 346 return_ACPI_STATUS(AE_AML_INTERNAL); 347 } 348 ··· 600 (this_node->type != type_to_check_for)) { 601 /* Complain about a type mismatch */ 602 603 + ACPI_REPORT_WARNING(("ns_lookup: Type mismatch on %4.4s (%s), searching for (%s)\n", ACPI_CAST_PTR(char, &simple_name), acpi_ut_get_type_name(this_node->type), acpi_ut_get_type_name(type_to_check_for))); 604 } 605 606 /*
+3 -4
drivers/acpi/namespace/nsalloc.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 272 /* Grandchildren should have all been deleted already */ 273 274 if (child_node->child) { 275 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 276 - "Found a grandchild! P=%p C=%p\n", 277 - parent_node, child_node)); 278 } 279 280 /* Now we can free this child object */
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 272 /* Grandchildren should have all been deleted already */ 273 274 if (child_node->child) { 275 + ACPI_REPORT_ERROR(("Found a grandchild! P=%p C=%p\n", 276 + parent_node, child_node)); 277 } 278 279 /* Now we can free this child object */
+3 -2
drivers/acpi/namespace/nsdump.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 198 /* Check the node type and name */ 199 200 if (type > ACPI_TYPE_LOCAL_MAX) { 201 - ACPI_REPORT_WARNING(("Invalid ACPI Type %08X\n", type)); 202 } 203 204 if (!acpi_ut_valid_acpi_name(this_node->name.integer)) {
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 198 /* Check the node type and name */ 199 200 if (type > ACPI_TYPE_LOCAL_MAX) { 201 + ACPI_REPORT_WARNING(("Invalid ACPI Object Type %08X\n", 202 + type)); 203 } 204 205 if (!acpi_ut_valid_acpi_name(this_node->name.integer)) {
+1 -1
drivers/acpi/namespace/nsdumpdv.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+2 -3
drivers/acpi/namespace/nseval.c
··· 6 ******************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 373 374 info->obj_desc = acpi_ns_get_attached_object(info->node); 375 if (!info->obj_desc) { 376 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 377 - "No attached method object\n")); 378 379 (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); 380 return_ACPI_STATUS(AE_NULL_OBJECT);
··· 6 ******************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 373 374 info->obj_desc = acpi_ns_get_attached_object(info->node); 375 if (!info->obj_desc) { 376 + ACPI_REPORT_ERROR(("No attached method object\n")); 377 378 (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); 379 return_ACPI_STATUS(AE_NULL_OBJECT);
+9 -13
drivers/acpi/namespace/nsinit.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 93 ACPI_UINT32_MAX, acpi_ns_init_one_object, 94 &info, NULL); 95 if (ACPI_FAILURE(status)) { 96 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "walk_namespace failed! %s\n", 97 - acpi_format_exception(status))); 98 } 99 100 ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT, ··· 159 (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); 160 161 if (ACPI_FAILURE(status)) { 162 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "walk_namespace failed! %s\n", 163 - acpi_format_exception(status))); 164 } 165 166 ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT, ··· 289 } 290 291 if (ACPI_FAILURE(status)) { 292 - ACPI_DEBUG_PRINT_RAW((ACPI_DB_ERROR, "\n")); 293 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 294 - "Could not execute arguments for [%4.4s] (%s), %s\n", 295 - acpi_ut_get_node_name(node), 296 - acpi_ut_get_type_name(type), 297 - acpi_format_exception(status))); 298 } 299 300 /* ··· 416 #ifdef ACPI_DEBUG_OUTPUT 417 char *scope_name = acpi_ns_get_external_pathname(ini_node); 418 419 - ACPI_DEBUG_PRINT((ACPI_DB_WARN, "%s._INI failed: %s\n", 420 - scope_name, acpi_format_exception(status))); 421 422 ACPI_MEM_FREE(scope_name); 423 #endif
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 93 ACPI_UINT32_MAX, acpi_ns_init_one_object, 94 &info, NULL); 95 if (ACPI_FAILURE(status)) { 96 + ACPI_REPORT_ERROR(("walk_namespace failed! %s\n", 97 + acpi_format_exception(status))); 98 } 99 100 ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT, ··· 159 (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); 160 161 if (ACPI_FAILURE(status)) { 162 + ACPI_REPORT_ERROR(("walk_namespace failed! %s\n", 163 + acpi_format_exception(status))); 164 } 165 166 ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT, ··· 289 } 290 291 if (ACPI_FAILURE(status)) { 292 + ACPI_REPORT_ERROR(("\nCould not execute arguments for [%4.4s] (%s), %s\n", acpi_ut_get_node_name(node), acpi_ut_get_type_name(type), acpi_format_exception(status))); 293 } 294 295 /* ··· 421 #ifdef ACPI_DEBUG_OUTPUT 422 char *scope_name = acpi_ns_get_external_pathname(ini_node); 423 424 + ACPI_REPORT_WARNING(("%s._INI failed: %s\n", 425 + scope_name, 426 + acpi_format_exception(status))); 427 428 ACPI_MEM_FREE(scope_name); 429 #endif
+3 -3
drivers/acpi/namespace/nsload.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 92 /* Check validity of the AML start and length */ 93 94 if (!table_desc->aml_start) { 95 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Null AML pointer\n")); 96 return_ACPI_STATUS(AE_BAD_PARAMETER); 97 } 98 ··· 263 /* There must be at least a DSDT installed */ 264 265 if (acpi_gbl_DSDT == NULL) { 266 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "DSDT is not in memory\n")); 267 return_ACPI_STATUS(AE_NO_ACPI_TABLES); 268 } 269
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 92 /* Check validity of the AML start and length */ 93 94 if (!table_desc->aml_start) { 95 + ACPI_REPORT_ERROR(("Null AML pointer\n")); 96 return_ACPI_STATUS(AE_BAD_PARAMETER); 97 } 98 ··· 263 /* There must be at least a DSDT installed */ 264 265 if (acpi_gbl_DSDT == NULL) { 266 + ACPI_REPORT_ERROR(("DSDT is not in memory\n")); 267 return_ACPI_STATUS(AE_NO_ACPI_TABLES); 268 } 269
+4 -6
drivers/acpi/namespace/nsnames.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 75 acpi_size index; 76 struct acpi_namespace_node *parent_node; 77 78 - ACPI_FUNCTION_NAME("ns_build_external_path"); 79 80 /* Special case for root */ 81 ··· 110 name_buffer[index] = AML_ROOT_PREFIX; 111 112 if (index != 0) { 113 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 114 - "Could not construct pathname; index=%X, size=%X, Path=%s\n", 115 - (u32) index, (u32) size, &name_buffer[size])); 116 } 117 118 return; ··· 146 147 name_buffer = ACPI_MEM_CALLOCATE(size); 148 if (!name_buffer) { 149 - ACPI_REPORT_ERROR(("ns_get_table_pathname: allocation failure\n")); 150 return_PTR(NULL); 151 } 152
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 75 acpi_size index; 76 struct acpi_namespace_node *parent_node; 77 78 + ACPI_FUNCTION_ENTRY(); 79 80 /* Special case for root */ 81 ··· 110 name_buffer[index] = AML_ROOT_PREFIX; 111 112 if (index != 0) { 113 + ACPI_REPORT_ERROR(("Could not construct pathname; index=%X, size=%X, Path=%s\n", (u32) index, (u32) size, &name_buffer[size])); 114 } 115 116 return; ··· 148 149 name_buffer = ACPI_MEM_CALLOCATE(size); 150 if (!name_buffer) { 151 + ACPI_REPORT_ERROR(("Allocation failure\n")); 152 return_PTR(NULL); 153 } 154
+5 -5
drivers/acpi/namespace/nsobject.c
··· 6 ******************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 84 if (!node) { 85 /* Invalid handle */ 86 87 - ACPI_REPORT_ERROR(("ns_attach_object: Null named_obj handle\n")); 88 return_ACPI_STATUS(AE_BAD_PARAMETER); 89 } 90 91 if (!object && (ACPI_TYPE_ANY != type)) { 92 /* Null object */ 93 94 - ACPI_REPORT_ERROR(("ns_attach_object: Null object, but type not ACPI_TYPE_ANY\n")); 95 return_ACPI_STATUS(AE_BAD_PARAMETER); 96 } 97 98 if (ACPI_GET_DESCRIPTOR_TYPE(node) != ACPI_DESC_TYPE_NAMED) { 99 /* Not a name handle */ 100 101 - ACPI_REPORT_ERROR(("ns_attach_object: Invalid handle %p [%s]\n", 102 node, acpi_ut_get_descriptor_name(node))); 103 return_ACPI_STATUS(AE_BAD_PARAMETER); 104 } ··· 254 ACPI_FUNCTION_TRACE_PTR("ns_get_attached_object", node); 255 256 if (!node) { 257 - ACPI_DEBUG_PRINT((ACPI_DB_WARN, "Null Node ptr\n")); 258 return_PTR(NULL); 259 } 260
··· 6 ******************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 84 if (!node) { 85 /* Invalid handle */ 86 87 + ACPI_REPORT_ERROR(("Null named_obj handle\n")); 88 return_ACPI_STATUS(AE_BAD_PARAMETER); 89 } 90 91 if (!object && (ACPI_TYPE_ANY != type)) { 92 /* Null object */ 93 94 + ACPI_REPORT_ERROR(("Null object, but type not ACPI_TYPE_ANY\n")); 95 return_ACPI_STATUS(AE_BAD_PARAMETER); 96 } 97 98 if (ACPI_GET_DESCRIPTOR_TYPE(node) != ACPI_DESC_TYPE_NAMED) { 99 /* Not a name handle */ 100 101 + ACPI_REPORT_ERROR(("Invalid handle %p [%s]\n", 102 node, acpi_ut_get_descriptor_name(node))); 103 return_ACPI_STATUS(AE_BAD_PARAMETER); 104 } ··· 254 ACPI_FUNCTION_TRACE_PTR("ns_get_attached_object", node); 255 256 if (!node) { 257 + ACPI_REPORT_WARNING(("Null Node ptr\n")); 258 return_PTR(NULL); 259 } 260
+1 -1
drivers/acpi/namespace/nsparse.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+4 -7
drivers/acpi/namespace/nssearch.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 298 /* Parameter validation */ 299 300 if (!node || !target_name || !return_node) { 301 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 302 - "Null param: Node %p Name %X return_node %p\n", 303 - node, target_name, return_node)); 304 - 305 - ACPI_REPORT_ERROR(("ns_search_and_enter: Null parameter\n")); 306 return_ACPI_STATUS(AE_BAD_PARAMETER); 307 } 308 309 /* Name must consist of printable characters */ 310 311 if (!acpi_ut_valid_acpi_name(target_name)) { 312 - ACPI_REPORT_ERROR(("ns_search_and_enter: Bad character in ACPI Name: %X\n", target_name)); 313 return_ACPI_STATUS(AE_BAD_CHARACTER); 314 } 315
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 298 /* Parameter validation */ 299 300 if (!node || !target_name || !return_node) { 301 + ACPI_REPORT_ERROR(("Null param: Node %p Name %X return_node %p\n", node, target_name, return_node)); 302 return_ACPI_STATUS(AE_BAD_PARAMETER); 303 } 304 305 /* Name must consist of printable characters */ 306 307 if (!acpi_ut_valid_acpi_name(target_name)) { 308 + ACPI_REPORT_ERROR(("Bad character in ACPI Name: %X\n", 309 + target_name)); 310 return_ACPI_STATUS(AE_BAD_CHARACTER); 311 } 312
+11 -18
drivers/acpi/namespace/nsutils.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 63 * 64 * PARAMETERS: module_name - Caller's module name (for error output) 65 * line_number - Caller's line number (for error output) 66 - * component_id - Caller's component ID (for error output) 67 * internal_name - Name or path of the namespace node 68 * lookup_status - Exception code from NS lookup 69 * ··· 75 void 76 acpi_ns_report_error(char *module_name, 77 u32 line_number, 78 - u32 component_id, 79 char *internal_name, acpi_status lookup_status) 80 { 81 acpi_status status; 82 char *name = NULL; 83 84 - acpi_os_printf("%8s-%04d: *** Error: Looking up ", 85 - module_name, line_number); 86 87 if (lookup_status == AE_BAD_CHARACTER) { 88 /* There is a non-ascii character in the name */ ··· 106 } 107 } 108 109 - acpi_os_printf(" in namespace, %s\n", 110 acpi_format_exception(lookup_status)); 111 } 112 ··· 116 * 117 * PARAMETERS: module_name - Caller's module name (for error output) 118 * line_number - Caller's line number (for error output) 119 - * component_id - Caller's component ID (for error output) 120 * Message - Error message to use on failure 121 * prefix_node - Prefix relative to the path 122 - * Path - Path to the node 123 * method_status - Execution status 124 * 125 * RETURN: None ··· 130 void 131 acpi_ns_report_method_error(char *module_name, 132 u32 line_number, 133 - u32 component_id, 134 char *message, 135 struct acpi_namespace_node *prefix_node, 136 char *path, acpi_status method_status) ··· 137 acpi_status status; 138 struct acpi_namespace_node *node = prefix_node; 139 140 if (path) { 141 status = acpi_ns_get_node_by_path(path, prefix_node, 142 ACPI_NS_NO_UPSEARCH, &node); 143 if (ACPI_FAILURE(status)) { 144 - acpi_os_printf 145 - ("report_method_error: Could not get node\n"); 146 - return; 147 } 148 } 149 150 - acpi_os_printf("%8s-%04d: *** Error: ", module_name, line_number); 151 acpi_ns_print_node_pathname(node, message); 152 acpi_os_printf(", %s\n", acpi_format_exception(method_status)); 153 } ··· 242 ACPI_FUNCTION_TRACE("ns_get_type"); 243 244 if (!node) { 245 - ACPI_REPORT_WARNING(("ns_get_type: Null Node input pointer\n")); 246 return_UINT32(ACPI_TYPE_ANY); 247 } 248 ··· 269 if (!acpi_ut_valid_object_type(type)) { 270 /* Type code out of range */ 271 272 - ACPI_REPORT_WARNING(("ns_local: Invalid Object Type\n")); 273 return_UINT32(ACPI_NS_NORMAL); 274 } 275 ··· 621 * with internal_name (invalid format). 622 */ 623 if (required_length > internal_name_length) { 624 - ACPI_REPORT_ERROR(("ns_externalize_name: Invalid internal name\n")); 625 return_ACPI_STATUS(AE_BAD_PATHNAME); 626 } 627 ··· 797 if (!acpi_ut_valid_object_type(type)) { 798 /* type code out of range */ 799 800 - ACPI_REPORT_WARNING(("ns_opens_scope: Invalid Object Type %X\n", 801 - type)); 802 return_UINT32(ACPI_NS_NORMAL); 803 } 804
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 63 * 64 * PARAMETERS: module_name - Caller's module name (for error output) 65 * line_number - Caller's line number (for error output) 66 * internal_name - Name or path of the namespace node 67 * lookup_status - Exception code from NS lookup 68 * ··· 76 void 77 acpi_ns_report_error(char *module_name, 78 u32 line_number, 79 char *internal_name, acpi_status lookup_status) 80 { 81 acpi_status status; 82 char *name = NULL; 83 84 + acpi_ut_report_error(module_name, line_number); 85 86 if (lookup_status == AE_BAD_CHARACTER) { 87 /* There is a non-ascii character in the name */ ··· 109 } 110 } 111 112 + acpi_os_printf("Namespace lookup failure, %s\n", 113 acpi_format_exception(lookup_status)); 114 } 115 ··· 119 * 120 * PARAMETERS: module_name - Caller's module name (for error output) 121 * line_number - Caller's line number (for error output) 122 * Message - Error message to use on failure 123 * prefix_node - Prefix relative to the path 124 + * Path - Path to the node (optional) 125 * method_status - Execution status 126 * 127 * RETURN: None ··· 134 void 135 acpi_ns_report_method_error(char *module_name, 136 u32 line_number, 137 char *message, 138 struct acpi_namespace_node *prefix_node, 139 char *path, acpi_status method_status) ··· 142 acpi_status status; 143 struct acpi_namespace_node *node = prefix_node; 144 145 + acpi_ut_report_error(module_name, line_number); 146 + 147 if (path) { 148 status = acpi_ns_get_node_by_path(path, prefix_node, 149 ACPI_NS_NO_UPSEARCH, &node); 150 if (ACPI_FAILURE(status)) { 151 + acpi_os_printf("[Could not get node by pathname]"); 152 } 153 } 154 155 acpi_ns_print_node_pathname(node, message); 156 acpi_os_printf(", %s\n", acpi_format_exception(method_status)); 157 } ··· 248 ACPI_FUNCTION_TRACE("ns_get_type"); 249 250 if (!node) { 251 + ACPI_REPORT_WARNING(("Null Node parameter\n")); 252 return_UINT32(ACPI_TYPE_ANY); 253 } 254 ··· 275 if (!acpi_ut_valid_object_type(type)) { 276 /* Type code out of range */ 277 278 + ACPI_REPORT_WARNING(("Invalid Object Type %X\n", type)); 279 return_UINT32(ACPI_NS_NORMAL); 280 } 281 ··· 627 * with internal_name (invalid format). 628 */ 629 if (required_length > internal_name_length) { 630 + ACPI_REPORT_ERROR(("Invalid internal name\n")); 631 return_ACPI_STATUS(AE_BAD_PATHNAME); 632 } 633 ··· 803 if (!acpi_ut_valid_object_type(type)) { 804 /* type code out of range */ 805 806 + ACPI_REPORT_WARNING(("Invalid Object Type %X\n", type)); 807 return_UINT32(ACPI_NS_NORMAL); 808 } 809
+1 -1
drivers/acpi/namespace/nswalk.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+9 -12
drivers/acpi/namespace/nsxfeval.c
··· 6 ******************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 112 if (return_buffer->length == 0) { 113 /* Error because caller specifically asked for a return value */ 114 115 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "No return value\n")); 116 - 117 return_ACPI_STATUS(AE_NULL_OBJECT); 118 } 119 ··· 124 125 /* Return object type does not match requested type */ 126 127 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 128 - "Incorrect return type [%s] requested [%s]\n", 129 - acpi_ut_get_type_name(((union acpi_object *) 130 - return_buffer->pointer)->type), 131 - acpi_ut_get_type_name(return_type))); 132 133 if (must_free) { 134 /* Caller used ACPI_ALLOCATE_BUFFER, free the return buffer */ ··· 235 * qualified names above, this is an error 236 */ 237 if (!pathname) { 238 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 239 - "Both Handle and Pathname are NULL\n")); 240 } else { 241 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 242 - "Handle is NULL and Pathname is relative\n")); 243 } 244 245 status = AE_BAD_PARAMETER;
··· 6 ******************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 112 if (return_buffer->length == 0) { 113 /* Error because caller specifically asked for a return value */ 114 115 + ACPI_REPORT_ERROR(("No return value\n")); 116 return_ACPI_STATUS(AE_NULL_OBJECT); 117 } 118 ··· 125 126 /* Return object type does not match requested type */ 127 128 + ACPI_REPORT_ERROR(("Incorrect return type [%s] requested [%s]\n", 129 + acpi_ut_get_type_name(((union acpi_object *) 130 + return_buffer->pointer)-> 131 + type), 132 + acpi_ut_get_type_name(return_type))); 133 134 if (must_free) { 135 /* Caller used ACPI_ALLOCATE_BUFFER, free the return buffer */ ··· 236 * qualified names above, this is an error 237 */ 238 if (!pathname) { 239 + ACPI_REPORT_ERROR(("Both Handle and Pathname are NULL\n")); 240 } else { 241 + ACPI_REPORT_ERROR(("Handle is NULL and Pathname is relative\n")); 242 } 243 244 status = AE_BAD_PARAMETER;
+1 -1
drivers/acpi/namespace/nsxfname.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
+1 -1
drivers/acpi/namespace/nsxfobj.c
··· 6 ******************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
··· 6 ******************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
+2 -2
drivers/acpi/parser/psargs.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 298 acpi_ps_append_arg(arg, name_op); 299 300 if (!method_desc) { 301 - ACPI_REPORT_ERROR(("ps_get_next_namepath: Control Method %p has no attached object\n", node)); 302 return_ACPI_STATUS(AE_AML_INTERNAL); 303 } 304
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 298 acpi_ps_append_arg(arg, name_op); 299 300 if (!method_desc) { 301 + ACPI_REPORT_ERROR(("Control Method %p has no attached object\n", node)); 302 return_ACPI_STATUS(AE_AML_INTERNAL); 303 } 304
+5 -18
drivers/acpi/parser/psloop.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 123 && ((status & AE_CODE_MASK) != 124 AE_CODE_CONTROL)) { 125 if (status == AE_AML_NO_RETURN_VALUE) { 126 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 127 - "Invoked method did not return a value, %s\n", 128 - acpi_format_exception 129 - (status))); 130 131 } 132 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 133 - "get_predicate Failed, %s\n", 134 - acpi_format_exception 135 - (status))); 136 return_ACPI_STATUS(status); 137 } 138 ··· 184 185 /* The opcode is unrecognized. Just skip unknown opcodes */ 186 187 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 188 - "Found unknown opcode %X at AML address %p offset %X, ignoring\n", 189 - walk_state->opcode, 190 - parser_state->aml, 191 - walk_state->aml_offset)); 192 193 ACPI_DUMP_BUFFER(parser_state->aml, 128); 194 ··· 271 walk_state->descending_callback(walk_state, 272 &op); 273 if (ACPI_FAILURE(status)) { 274 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 275 - "During name lookup/catalog, %s\n", 276 - acpi_format_exception 277 - (status))); 278 goto close_this_op; 279 } 280
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 123 && ((status & AE_CODE_MASK) != 124 AE_CODE_CONTROL)) { 125 if (status == AE_AML_NO_RETURN_VALUE) { 126 + ACPI_REPORT_ERROR(("Invoked method did not return a value, %s\n", acpi_format_exception(status))); 127 128 } 129 + ACPI_REPORT_ERROR(("get_predicate Failed, %s\n", acpi_format_exception(status))); 130 return_ACPI_STATUS(status); 131 } 132 ··· 190 191 /* The opcode is unrecognized. Just skip unknown opcodes */ 192 193 + ACPI_REPORT_ERROR(("Found unknown opcode %X at AML address %p offset %X, ignoring\n", walk_state->opcode, parser_state->aml, walk_state->aml_offset)); 194 195 ACPI_DUMP_BUFFER(parser_state->aml, 128); 196 ··· 281 walk_state->descending_callback(walk_state, 282 &op); 283 if (ACPI_FAILURE(status)) { 284 + ACPI_REPORT_ERROR(("During name lookup/catalog, %s\n", acpi_format_exception(status))); 285 goto close_this_op; 286 } 287
+2 -2
drivers/acpi/parser/psopcode.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 747 748 /* Unknown AML opcode */ 749 750 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 751 "Unknown AML opcode [%4.4X]\n", opcode)); 752 753 return (&acpi_gbl_aml_op_info[_UNK]);
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 747 748 /* Unknown AML opcode */ 749 750 + ACPI_DEBUG_PRINT((ACPI_DB_EXEC, 751 "Unknown AML opcode [%4.4X]\n", opcode)); 752 753 return (&acpi_gbl_aml_op_info[_UNK]);
+4 -4
drivers/acpi/parser/psparse.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 512 } else if ((status != AE_OK) && (walk_state->method_desc)) { 513 /* Either the method parse or actual execution failed */ 514 515 - ACPI_REPORT_METHOD_ERROR 516 - ("Method parse/execution failed", 517 - walk_state->method_node, NULL, status); 518 519 /* Check for possible multi-thread reentrancy problem */ 520
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 512 } else if ((status != AE_OK) && (walk_state->method_desc)) { 513 /* Either the method parse or actual execution failed */ 514 515 + ACPI_REPORT_MTERROR("Method parse/execution failed", 516 + walk_state->method_node, NULL, 517 + status); 518 519 /* Check for possible multi-thread reentrancy problem */ 520
+1 -1
drivers/acpi/parser/psscope.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+3 -2
drivers/acpi/parser/pstree.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 132 if (op_info->class == AML_CLASS_UNKNOWN) { 133 /* Invalid opcode */ 134 135 - ACPI_REPORT_ERROR(("ps_append_arg: Invalid AML Opcode: 0x%2.2X\n", op->common.aml_opcode)); 136 return; 137 } 138
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 132 if (op_info->class == AML_CLASS_UNKNOWN) { 133 /* Invalid opcode */ 134 135 + ACPI_REPORT_ERROR(("Invalid AML Opcode: 0x%2.2X\n", 136 + op->common.aml_opcode)); 137 return; 138 } 139
+1 -1
drivers/acpi/parser/psutils.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
drivers/acpi/parser/pswalk.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
drivers/acpi/parser/psxface.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
drivers/acpi/resources/rsaddr.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
drivers/acpi/resources/rscalc.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+8 -34
drivers/acpi/resources/rscreate.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 207 /* Each element of the top-level package must also be a package */ 208 209 if (ACPI_GET_OBJECT_TYPE(*top_object_list) != ACPI_TYPE_PACKAGE) { 210 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 211 - "(PRT[%X]) Need sub-package, found %s\n", 212 - index, 213 - acpi_ut_get_object_type_name 214 - (*top_object_list))); 215 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 216 } 217 218 /* Each sub-package must be of length 4 */ 219 220 if ((*top_object_list)->package.count != 4) { 221 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 222 - "(PRT[%X]) Need package of length 4, found length %d\n", 223 - index, 224 - (*top_object_list)->package.count)); 225 return_ACPI_STATUS(AE_AML_PACKAGE_LIMIT); 226 } 227 ··· 231 if (ACPI_GET_OBJECT_TYPE(obj_desc) == ACPI_TYPE_INTEGER) { 232 user_prt->address = obj_desc->integer.value; 233 } else { 234 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 235 - "(PRT[%X].Address) Need Integer, found %s\n", 236 - index, 237 - acpi_ut_get_object_type_name 238 - (obj_desc))); 239 return_ACPI_STATUS(AE_BAD_DATA); 240 } 241 ··· 241 if (ACPI_GET_OBJECT_TYPE(obj_desc) == ACPI_TYPE_INTEGER) { 242 user_prt->pin = (u32) obj_desc->integer.value; 243 } else { 244 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 245 - "(PRT[%X].Pin) Need Integer, found %s\n", 246 - index, 247 - acpi_ut_get_object_type_name 248 - (obj_desc))); 249 return_ACPI_STATUS(AE_BAD_DATA); 250 } 251 ··· 252 case ACPI_TYPE_LOCAL_REFERENCE: 253 254 if (obj_desc->reference.opcode != AML_INT_NAMEPATH_OP) { 255 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 256 - "(PRT[%X].Source) Need name, found reference op %X\n", 257 - index, 258 - obj_desc->reference.opcode)); 259 return_ACPI_STATUS(AE_BAD_DATA); 260 } 261 ··· 298 299 default: 300 301 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 302 - "(PRT[%X].Source) Need Ref/String/Integer, found %s\n", 303 - index, 304 - acpi_ut_get_object_type_name 305 - (obj_desc))); 306 return_ACPI_STATUS(AE_BAD_DATA); 307 } 308 ··· 313 if (ACPI_GET_OBJECT_TYPE(obj_desc) == ACPI_TYPE_INTEGER) { 314 user_prt->source_index = (u32) obj_desc->integer.value; 315 } else { 316 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 317 - "(PRT[%X].source_index) Need Integer, found %s\n", 318 - index, 319 - acpi_ut_get_object_type_name 320 - (obj_desc))); 321 return_ACPI_STATUS(AE_BAD_DATA); 322 } 323
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 207 /* Each element of the top-level package must also be a package */ 208 209 if (ACPI_GET_OBJECT_TYPE(*top_object_list) != ACPI_TYPE_PACKAGE) { 210 + ACPI_REPORT_ERROR(("(PRT[%X]) Need sub-package, found %s\n", index, acpi_ut_get_object_type_name(*top_object_list))); 211 return_ACPI_STATUS(AE_AML_OPERAND_TYPE); 212 } 213 214 /* Each sub-package must be of length 4 */ 215 216 if ((*top_object_list)->package.count != 4) { 217 + ACPI_REPORT_ERROR(("(PRT[%X]) Need package of length 4, found length %d\n", index, (*top_object_list)->package.count)); 218 return_ACPI_STATUS(AE_AML_PACKAGE_LIMIT); 219 } 220 ··· 238 if (ACPI_GET_OBJECT_TYPE(obj_desc) == ACPI_TYPE_INTEGER) { 239 user_prt->address = obj_desc->integer.value; 240 } else { 241 + ACPI_REPORT_ERROR(("(PRT[%X].Address) Need Integer, found %s\n", index, acpi_ut_get_object_type_name(obj_desc))); 242 return_ACPI_STATUS(AE_BAD_DATA); 243 } 244 ··· 252 if (ACPI_GET_OBJECT_TYPE(obj_desc) == ACPI_TYPE_INTEGER) { 253 user_prt->pin = (u32) obj_desc->integer.value; 254 } else { 255 + ACPI_REPORT_ERROR(("(PRT[%X].Pin) Need Integer, found %s\n", index, acpi_ut_get_object_type_name(obj_desc))); 256 return_ACPI_STATUS(AE_BAD_DATA); 257 } 258 ··· 267 case ACPI_TYPE_LOCAL_REFERENCE: 268 269 if (obj_desc->reference.opcode != AML_INT_NAMEPATH_OP) { 270 + ACPI_REPORT_ERROR(("(PRT[%X].Source) Need name, found reference op %X\n", index, obj_desc->reference.opcode)); 271 return_ACPI_STATUS(AE_BAD_DATA); 272 } 273 ··· 316 317 default: 318 319 + ACPI_REPORT_ERROR(("(PRT[%X].Source) Need Ref/String/Integer, found %s\n", index, acpi_ut_get_object_type_name(obj_desc))); 320 return_ACPI_STATUS(AE_BAD_DATA); 321 } 322 ··· 335 if (ACPI_GET_OBJECT_TYPE(obj_desc) == ACPI_TYPE_INTEGER) { 336 user_prt->source_index = (u32) obj_desc->integer.value; 337 } else { 338 + ACPI_REPORT_ERROR(("(PRT[%X].source_index) Need Integer, found %s\n", index, acpi_ut_get_object_type_name(obj_desc))); 339 return_ACPI_STATUS(AE_BAD_DATA); 340 } 341
+1 -1
drivers/acpi/resources/rsdump.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
drivers/acpi/resources/rsinfo.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
drivers/acpi/resources/rsio.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
drivers/acpi/resources/rsirq.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+2 -4
drivers/acpi/resources/rslist.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 156 /* Validate the (internal) Resource Type */ 157 158 if (resource->type > ACPI_RESOURCE_TYPE_MAX) { 159 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 160 - "Invalid descriptor type (%X) in resource list\n", 161 - resource->type)); 162 return_ACPI_STATUS(AE_BAD_DATA); 163 } 164
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 156 /* Validate the (internal) Resource Type */ 157 158 if (resource->type > ACPI_RESOURCE_TYPE_MAX) { 159 + ACPI_REPORT_ERROR(("Invalid descriptor type (%X) in resource list\n", resource->type)); 160 return_ACPI_STATUS(AE_BAD_DATA); 161 } 162
+1 -1
drivers/acpi/resources/rsmemory.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+3 -6
drivers/acpi/resources/rsmisc.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 523 * polarity/trigger interrupts are allowed (ACPI spec, section 524 * "IRQ Format"), so 0x00 and 0x09 are illegal. 525 */ 526 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 527 - "Invalid interrupt polarity/trigger in resource list, %X\n", 528 - aml->irq.flags)); 529 return_ACPI_STATUS(AE_BAD_DATA); 530 } 531 ··· 535 } 536 537 if (resource->data.dma.transfer == 0x03) { 538 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 539 - "Invalid DMA.Transfer preference (3)\n")); 540 return_ACPI_STATUS(AE_BAD_DATA); 541 } 542 #endif
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 523 * polarity/trigger interrupts are allowed (ACPI spec, section 524 * "IRQ Format"), so 0x00 and 0x09 are illegal. 525 */ 526 + ACPI_REPORT_ERROR(("Invalid interrupt polarity/trigger in resource list, %X\n", aml->irq.flags)); 527 return_ACPI_STATUS(AE_BAD_DATA); 528 } 529 ··· 537 } 538 539 if (resource->data.dma.transfer == 0x03) { 540 + ACPI_REPORT_ERROR(("Invalid DMA.Transfer preference (3)\n")); 541 return_ACPI_STATUS(AE_BAD_DATA); 542 } 543 #endif
+1 -1
drivers/acpi/resources/rsutils.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
drivers/acpi/resources/rsxface.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
drivers/acpi/tables/tbconvrt.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+3 -3
drivers/acpi/tables/tbget.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 362 363 default: 364 365 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Invalid address flags %X\n", 366 - address->pointer_type)); 367 return_ACPI_STATUS(AE_BAD_PARAMETER); 368 } 369
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 362 363 default: 364 365 + ACPI_REPORT_ERROR(("Invalid address flags %X\n", 366 + address->pointer_type)); 367 return_ACPI_STATUS(AE_BAD_PARAMETER); 368 } 369
+1 -1
drivers/acpi/tables/tbgetall.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
drivers/acpi/tables/tbinstal.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+6 -12
drivers/acpi/tables/tbrsdt.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 176 { 177 int no_match; 178 179 - ACPI_FUNCTION_NAME("tb_validate_rsdt"); 180 181 /* 182 * Search for appropriate signature, RSDT or XSDT ··· 192 if (no_match) { 193 /* Invalid RSDT or XSDT signature */ 194 195 - ACPI_REPORT_ERROR(("Invalid signature where RSDP indicates RSDT/XSDT should be located\n")); 196 197 ACPI_DUMP_BUFFER(acpi_gbl_RSDP, 20); 198 199 - ACPI_DEBUG_PRINT_RAW((ACPI_DB_ERROR, 200 - "RSDT/XSDT signature at %X (%p) is invalid\n", 201 - acpi_gbl_RSDP->rsdt_physical_address, 202 - (void *)(acpi_native_uint) acpi_gbl_RSDP-> 203 - rsdt_physical_address)); 204 205 if (acpi_gbl_root_table_type == ACPI_TABLE_TYPE_RSDT) { 206 ACPI_REPORT_ERROR(("Looking for RSDT\n")) ··· 205 } 206 207 ACPI_DUMP_BUFFER((char *)table_ptr, 48); 208 - 209 return (AE_BAD_SIGNATURE); 210 } 211 ··· 238 table_info.type = ACPI_TABLE_XSDT; 239 status = acpi_tb_get_table(&address, &table_info); 240 if (ACPI_FAILURE(status)) { 241 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 242 - "Could not get the RSDT/XSDT, %s\n", 243 - acpi_format_exception(status))); 244 245 return_ACPI_STATUS(status); 246 }
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 176 { 177 int no_match; 178 179 + ACPI_FUNCTION_ENTRY(); 180 181 /* 182 * Search for appropriate signature, RSDT or XSDT ··· 192 if (no_match) { 193 /* Invalid RSDT or XSDT signature */ 194 195 + ACPI_REPORT_ERROR(("Invalid signature where RSDP indicates RSDT/XSDT should be located. RSDP:\n")); 196 197 ACPI_DUMP_BUFFER(acpi_gbl_RSDP, 20); 198 199 + ACPI_REPORT_ERROR(("RSDT/XSDT signature at %X (%p) is invalid\n", acpi_gbl_RSDP->rsdt_physical_address, (void *)(acpi_native_uint) acpi_gbl_RSDP->rsdt_physical_address)); 200 201 if (acpi_gbl_root_table_type == ACPI_TABLE_TYPE_RSDT) { 202 ACPI_REPORT_ERROR(("Looking for RSDT\n")) ··· 209 } 210 211 ACPI_DUMP_BUFFER((char *)table_ptr, 48); 212 return (AE_BAD_SIGNATURE); 213 } 214 ··· 243 table_info.type = ACPI_TABLE_XSDT; 244 status = acpi_tb_get_table(&address, &table_info); 245 if (ACPI_FAILURE(status)) { 246 + ACPI_REPORT_ERROR(("Could not get the RSDT/XSDT, %s\n", 247 + acpi_format_exception(status))); 248 249 return_ACPI_STATUS(status); 250 }
+8 -14
drivers/acpi/tables/tbutils.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 144 { 145 acpi_name signature; 146 147 - ACPI_FUNCTION_NAME("tb_validate_table_header"); 148 149 /* Verify that this is a valid address */ 150 151 if (!acpi_os_readable(table_header, sizeof(struct acpi_table_header))) { 152 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 153 - "Cannot read table header at %p\n", 154 - table_header)); 155 156 return (AE_BAD_ADDRESS); 157 } ··· 159 160 ACPI_MOVE_32_TO_32(&signature, table_header->signature); 161 if (!acpi_ut_valid_acpi_name(signature)) { 162 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 163 - "Table signature at %p [%p] has invalid characters\n", 164 - table_header, &signature)); 165 166 ACPI_REPORT_WARNING(("Invalid table signature found: [%4.4s]\n", 167 - (char *)&signature)); 168 169 ACPI_DUMP_BUFFER(table_header, 170 sizeof(struct acpi_table_header)); ··· 172 /* Validate the table length */ 173 174 if (table_header->length < sizeof(struct acpi_table_header)) { 175 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 176 - "Invalid length in table header %p name %4.4s\n", 177 - table_header, (char *)&signature)); 178 179 ACPI_REPORT_WARNING(("Invalid table header length (0x%X) found\n", (u32) table_header->length)); 180 ··· 286 } 287 } 288 289 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "table_id=%X does not exist\n", 290 - table_id)); 291 return (AE_BAD_PARAMETER); 292 } 293 #endif
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 144 { 145 acpi_name signature; 146 147 + ACPI_FUNCTION_ENTRY(); 148 149 /* Verify that this is a valid address */ 150 151 if (!acpi_os_readable(table_header, sizeof(struct acpi_table_header))) { 152 + ACPI_REPORT_ERROR(("Cannot read table header at %p\n", 153 + table_header)); 154 155 return (AE_BAD_ADDRESS); 156 } ··· 160 161 ACPI_MOVE_32_TO_32(&signature, table_header->signature); 162 if (!acpi_ut_valid_acpi_name(signature)) { 163 + ACPI_REPORT_ERROR(("Table signature at %p [%p] has invalid characters\n", table_header, &signature)); 164 165 ACPI_REPORT_WARNING(("Invalid table signature found: [%4.4s]\n", 166 + ACPI_CAST_PTR(char, &signature))); 167 168 ACPI_DUMP_BUFFER(table_header, 169 sizeof(struct acpi_table_header)); ··· 175 /* Validate the table length */ 176 177 if (table_header->length < sizeof(struct acpi_table_header)) { 178 + ACPI_REPORT_ERROR(("Invalid length in table header %p name %4.4s\n", table_header, (char *)&signature)); 179 180 ACPI_REPORT_WARNING(("Invalid table header length (0x%X) found\n", (u32) table_header->length)); 181 ··· 291 } 292 } 293 294 + ACPI_REPORT_ERROR(("table_id=%X does not exist\n", table_id)); 295 return (AE_BAD_PARAMETER); 296 } 297 #endif
+10 -7
drivers/acpi/tables/tbxface.c
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 75 status = acpi_os_get_root_pointer(ACPI_LOGICAL_ADDRESSING, 76 &rsdp_address); 77 if (ACPI_FAILURE(status)) { 78 - ACPI_REPORT_ERROR(("acpi_load_tables: Could not get RSDP, %s\n", 79 acpi_format_exception(status))); 80 goto error_exit; 81 } ··· 86 87 status = acpi_tb_verify_rsdp(&rsdp_address); 88 if (ACPI_FAILURE(status)) { 89 - ACPI_REPORT_ERROR(("acpi_load_tables: RSDP Failed validation: %s\n", acpi_format_exception(status))); 90 goto error_exit; 91 } 92 ··· 95 96 status = acpi_tb_get_table_rsdt(); 97 if (ACPI_FAILURE(status)) { 98 - ACPI_REPORT_ERROR(("acpi_load_tables: Could not load RSDT: %s\n", acpi_format_exception(status))); 99 goto error_exit; 100 } 101 ··· 104 105 status = acpi_tb_get_required_tables(); 106 if (ACPI_FAILURE(status)) { 107 - ACPI_REPORT_ERROR(("acpi_load_tables: Error getting required tables (DSDT/FADT/FACS): %s\n", acpi_format_exception(status))); 108 goto error_exit; 109 } 110 ··· 114 115 status = acpi_ns_load_namespace(); 116 if (ACPI_FAILURE(status)) { 117 - ACPI_REPORT_ERROR(("acpi_load_tables: Could not load namespace: %s\n", acpi_format_exception(status))); 118 goto error_exit; 119 } 120 121 return_ACPI_STATUS(AE_OK); 122 123 error_exit: 124 - ACPI_REPORT_ERROR(("acpi_load_tables: Could not load tables: %s\n", 125 acpi_format_exception(status))); 126 127 return_ACPI_STATUS(status);
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without ··· 75 status = acpi_os_get_root_pointer(ACPI_LOGICAL_ADDRESSING, 76 &rsdp_address); 77 if (ACPI_FAILURE(status)) { 78 + ACPI_REPORT_ERROR(("Could not get RSDP, %s\n", 79 acpi_format_exception(status))); 80 goto error_exit; 81 } ··· 86 87 status = acpi_tb_verify_rsdp(&rsdp_address); 88 if (ACPI_FAILURE(status)) { 89 + ACPI_REPORT_ERROR(("RSDP Failed validation: %s\n", 90 + acpi_format_exception(status))); 91 goto error_exit; 92 } 93 ··· 94 95 status = acpi_tb_get_table_rsdt(); 96 if (ACPI_FAILURE(status)) { 97 + ACPI_REPORT_ERROR(("Could not load RSDT: %s\n", 98 + acpi_format_exception(status))); 99 goto error_exit; 100 } 101 ··· 102 103 status = acpi_tb_get_required_tables(); 104 if (ACPI_FAILURE(status)) { 105 + ACPI_REPORT_ERROR(("Could not get all required tables (DSDT/FADT/FACS): %s\n", acpi_format_exception(status))); 106 goto error_exit; 107 } 108 ··· 112 113 status = acpi_ns_load_namespace(); 114 if (ACPI_FAILURE(status)) { 115 + ACPI_REPORT_ERROR(("Could not load namespace: %s\n", 116 + acpi_format_exception(status))); 117 goto error_exit; 118 } 119 120 return_ACPI_STATUS(AE_OK); 121 122 error_exit: 123 + ACPI_REPORT_ERROR(("Could not load tables: %s\n", 124 acpi_format_exception(status))); 125 126 return_ACPI_STATUS(status);
+6 -16
drivers/acpi/tables/tbxfroot.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 396 397 status = acpi_tb_find_rsdp(&table_info, flags); 398 if (ACPI_FAILURE(status)) { 399 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 400 - "RSDP structure not found, %s Flags=%X\n", 401 - acpi_format_exception(status), flags)); 402 403 return_ACPI_STATUS(AE_NO_ACPI_TABLES); 404 } ··· 502 ACPI_EBDA_PTR_LENGTH, 503 (void *)&table_ptr); 504 if (ACPI_FAILURE(status)) { 505 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 506 - "Could not map memory at %8.8X for length %X\n", 507 - ACPI_EBDA_PTR_LOCATION, 508 - ACPI_EBDA_PTR_LENGTH)); 509 510 return_ACPI_STATUS(status); 511 } ··· 526 ACPI_EBDA_WINDOW_SIZE, 527 (void *)&table_ptr); 528 if (ACPI_FAILURE(status)) { 529 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 530 - "Could not map memory at %8.8X for length %X\n", 531 - physical_address, 532 - ACPI_EBDA_WINDOW_SIZE)); 533 534 return_ACPI_STATUS(status); 535 } ··· 556 (void *)&table_ptr); 557 558 if (ACPI_FAILURE(status)) { 559 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 560 - "Could not map memory at %8.8X for length %X\n", 561 - ACPI_HI_RSDP_WINDOW_BASE, 562 - ACPI_HI_RSDP_WINDOW_SIZE)); 563 564 return_ACPI_STATUS(status); 565 }
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 396 397 status = acpi_tb_find_rsdp(&table_info, flags); 398 if (ACPI_FAILURE(status)) { 399 + ACPI_REPORT_ERROR(("RSDP structure not found, %s Flags=%X\n", 400 + acpi_format_exception(status), flags)); 401 402 return_ACPI_STATUS(AE_NO_ACPI_TABLES); 403 } ··· 503 ACPI_EBDA_PTR_LENGTH, 504 (void *)&table_ptr); 505 if (ACPI_FAILURE(status)) { 506 + ACPI_REPORT_ERROR(("Could not map memory at %8.8X for length %X\n", ACPI_EBDA_PTR_LOCATION, ACPI_EBDA_PTR_LENGTH)); 507 508 return_ACPI_STATUS(status); 509 } ··· 530 ACPI_EBDA_WINDOW_SIZE, 531 (void *)&table_ptr); 532 if (ACPI_FAILURE(status)) { 533 + ACPI_REPORT_ERROR(("Could not map memory at %8.8X for length %X\n", physical_address, ACPI_EBDA_WINDOW_SIZE)); 534 535 return_ACPI_STATUS(status); 536 } ··· 563 (void *)&table_ptr); 564 565 if (ACPI_FAILURE(status)) { 566 + ACPI_REPORT_ERROR(("Could not map memory at %8.8X for length %X\n", ACPI_HI_RSDP_WINDOW_BASE, ACPI_HI_RSDP_WINDOW_SIZE)); 567 568 return_ACPI_STATUS(status); 569 }
+15 -17
drivers/acpi/utilities/utalloc.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 301 /* Check for an inadvertent size of zero bytes */ 302 303 if (!size) { 304 - _ACPI_REPORT_ERROR(module, line, component, 305 ("ut_allocate: Attempt to allocate zero bytes, allocating 1 byte\n")); 306 size = 1; 307 } ··· 310 if (!allocation) { 311 /* Report allocation error */ 312 313 - _ACPI_REPORT_ERROR(module, line, component, 314 ("ut_allocate: Could not allocate size %X\n", 315 (u32) size)); 316 ··· 344 /* Check for an inadvertent size of zero bytes */ 345 346 if (!size) { 347 - _ACPI_REPORT_ERROR(module, line, component, 348 ("ut_callocate: Attempt to allocate zero bytes, allocating 1 byte\n")); 349 size = 1; 350 } ··· 353 if (!allocation) { 354 /* Report allocation error */ 355 356 - _ACPI_REPORT_ERROR(module, line, component, 357 ("ut_callocate: Could not allocate size %X\n", 358 (u32) size)); 359 return_PTR(NULL); ··· 480 if (!allocation) { 481 /* Report allocation error */ 482 483 - _ACPI_REPORT_ERROR(module, line, component, 484 ("ut_callocate: Could not allocate size %X\n", 485 (u32) size)); 486 return (NULL); ··· 524 ACPI_FUNCTION_TRACE_PTR("ut_free", allocation); 525 526 if (NULL == allocation) { 527 - _ACPI_REPORT_ERROR(module, line, component, 528 ("acpi_ut_free: Attempt to delete a NULL address\n")); 529 530 return_VOID; ··· 540 status = acpi_ut_remove_allocation(debug_block, 541 component, module, line); 542 if (ACPI_FAILURE(status)) { 543 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Could not free memory, %s\n", 544 - acpi_format_exception(status))); 545 } 546 547 acpi_os_free(debug_block); ··· 626 if (element) { 627 ACPI_REPORT_ERROR(("ut_track_allocation: Allocation already present in list! (%p)\n", allocation)); 628 629 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Element %p Address %p\n", 630 - element, allocation)); 631 632 goto unlock_and_exit; 633 } ··· 687 if (NULL == mem_list->list_head) { 688 /* No allocations! */ 689 690 - _ACPI_REPORT_ERROR(module, line, component, 691 ("ut_remove_allocation: Empty allocation list, nothing to free!\n")); 692 693 return_ACPI_STATUS(AE_OK); ··· 863 /* Print summary */ 864 865 if (!num_outstanding) { 866 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 867 - "No outstanding allocations\n")); 868 } else { 869 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 870 - "%d(%X) Outstanding allocations\n", 871 - num_outstanding, num_outstanding)); 872 } 873 874 return_VOID;
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 301 /* Check for an inadvertent size of zero bytes */ 302 303 if (!size) { 304 + _ACPI_REPORT_ERROR(module, line, 305 ("ut_allocate: Attempt to allocate zero bytes, allocating 1 byte\n")); 306 size = 1; 307 } ··· 310 if (!allocation) { 311 /* Report allocation error */ 312 313 + _ACPI_REPORT_ERROR(module, line, 314 ("ut_allocate: Could not allocate size %X\n", 315 (u32) size)); 316 ··· 344 /* Check for an inadvertent size of zero bytes */ 345 346 if (!size) { 347 + _ACPI_REPORT_ERROR(module, line, 348 ("ut_callocate: Attempt to allocate zero bytes, allocating 1 byte\n")); 349 size = 1; 350 } ··· 353 if (!allocation) { 354 /* Report allocation error */ 355 356 + _ACPI_REPORT_ERROR(module, line, 357 ("ut_callocate: Could not allocate size %X\n", 358 (u32) size)); 359 return_PTR(NULL); ··· 480 if (!allocation) { 481 /* Report allocation error */ 482 483 + _ACPI_REPORT_ERROR(module, line, 484 ("ut_callocate: Could not allocate size %X\n", 485 (u32) size)); 486 return (NULL); ··· 524 ACPI_FUNCTION_TRACE_PTR("ut_free", allocation); 525 526 if (NULL == allocation) { 527 + _ACPI_REPORT_ERROR(module, line, 528 ("acpi_ut_free: Attempt to delete a NULL address\n")); 529 530 return_VOID; ··· 540 status = acpi_ut_remove_allocation(debug_block, 541 component, module, line); 542 if (ACPI_FAILURE(status)) { 543 + ACPI_REPORT_ERROR(("Could not free memory, %s\n", 544 + acpi_format_exception(status))); 545 } 546 547 acpi_os_free(debug_block); ··· 626 if (element) { 627 ACPI_REPORT_ERROR(("ut_track_allocation: Allocation already present in list! (%p)\n", allocation)); 628 629 + ACPI_REPORT_ERROR(("Element %p Address %p\n", 630 + element, allocation)); 631 632 goto unlock_and_exit; 633 } ··· 687 if (NULL == mem_list->list_head) { 688 /* No allocations! */ 689 690 + _ACPI_REPORT_ERROR(module, line, 691 ("ut_remove_allocation: Empty allocation list, nothing to free!\n")); 692 693 return_ACPI_STATUS(AE_OK); ··· 863 /* Print summary */ 864 865 if (!num_outstanding) { 866 + ACPI_REPORT_INFO(("No outstanding allocations\n")); 867 } else { 868 + ACPI_REPORT_ERROR(("%d(%X) Outstanding allocations\n", 869 + num_outstanding, num_outstanding)); 870 } 871 872 return_VOID;
+1 -1
drivers/acpi/utilities/utcache.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+3 -4
drivers/acpi/utilities/utcopy.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 606 /* 607 * Packages as external input to control methods are not supported, 608 */ 609 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 610 - "Packages as parameters not implemented!\n")); 611 612 return_ACPI_STATUS(AE_NOT_IMPLEMENTED); 613 } ··· 869 count + 870 1) * sizeof(void *)); 871 if (!dest_obj->package.elements) { 872 - ACPI_REPORT_ERROR(("aml_build_copy_internal_package_object: Package allocation failure\n")); 873 return_ACPI_STATUS(AE_NO_MEMORY); 874 } 875
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 606 /* 607 * Packages as external input to control methods are not supported, 608 */ 609 + ACPI_REPORT_ERROR(("Packages as parameters not implemented!\n")); 610 611 return_ACPI_STATUS(AE_NOT_IMPLEMENTED); 612 } ··· 870 count + 871 1) * sizeof(void *)); 872 if (!dest_obj->package.elements) { 873 + ACPI_REPORT_ERROR(("Package allocation failure\n")); 874 return_ACPI_STATUS(AE_NO_MEMORY); 875 } 876
+1 -1
drivers/acpi/utilities/utdebug.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+3 -6
drivers/acpi/utilities/utdelete.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 363 364 default: 365 366 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Unknown action (%X)\n", 367 - action)); 368 break; 369 } 370 ··· 373 */ 374 if (count > ACPI_MAX_REFERENCE_COUNT) { 375 376 - ACPI_DEBUG_PRINT((ACPI_DB_WARN, 377 - "**** Warning **** Large Reference Count (%X) in object %p\n\n", 378 - count, object)); 379 } 380 381 return;
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 363 364 default: 365 366 + ACPI_REPORT_ERROR(("Unknown action (%X)\n", action)); 367 break; 368 } 369 ··· 374 */ 375 if (count > ACPI_MAX_REFERENCE_COUNT) { 376 377 + ACPI_REPORT_WARNING(("Large Reference Count (%X) in object %p\n\n", count, object)); 378 } 379 380 return;
+8 -14
drivers/acpi/utilities/uteval.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 154 acpi_ut_get_node_name(prefix_node), 155 path)); 156 } else { 157 - ACPI_REPORT_METHOD_ERROR("Method execution failed", 158 - prefix_node, path, status); 159 } 160 161 return_ACPI_STATUS(status); ··· 165 166 if (!info.return_object) { 167 if (expected_return_btypes) { 168 - ACPI_REPORT_METHOD_ERROR("No object was returned from", 169 - prefix_node, path, 170 - AE_NOT_EXIST); 171 172 return_ACPI_STATUS(AE_NOT_EXIST); 173 } ··· 211 /* Is the return object one of the expected types? */ 212 213 if (!(expected_return_btypes & return_btype)) { 214 - ACPI_REPORT_METHOD_ERROR("Return object type is incorrect", 215 - prefix_node, path, AE_TYPE); 216 217 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 218 - "Type returned from %s was incorrect: %s, expected Btypes: %X\n", 219 - path, 220 - acpi_ut_get_object_type_name(info. 221 - return_object), 222 - expected_return_btypes)); 223 224 /* On error exit, we must delete the return object */ 225
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 154 acpi_ut_get_node_name(prefix_node), 155 path)); 156 } else { 157 + ACPI_REPORT_MTERROR("Method execution failed", 158 + prefix_node, path, status); 159 } 160 161 return_ACPI_STATUS(status); ··· 165 166 if (!info.return_object) { 167 if (expected_return_btypes) { 168 + ACPI_REPORT_MTERROR("No object was returned from", 169 + prefix_node, path, AE_NOT_EXIST); 170 171 return_ACPI_STATUS(AE_NOT_EXIST); 172 } ··· 212 /* Is the return object one of the expected types? */ 213 214 if (!(expected_return_btypes & return_btype)) { 215 + ACPI_REPORT_MTERROR("Return object type is incorrect", 216 + prefix_node, path, AE_TYPE); 217 218 + ACPI_REPORT_ERROR(("Type returned from %s was incorrect: %s, expected Btypes: %X\n", path, acpi_ut_get_object_type_name(info.return_object), expected_return_btypes)); 219 220 /* On error exit, we must delete the return object */ 221
+12 -9
drivers/acpi/utilities/utglobal.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 67 acpi_status sub_status; 68 const char *exception = NULL; 69 70 - ACPI_FUNCTION_NAME("format_exception"); 71 72 sub_status = (status & ~AE_CODE_MASK); 73 74 switch (status & AE_CODE_MASK) { ··· 121 if (!exception) { 122 /* Exception code was not recognized */ 123 124 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 125 - "Unknown exception code: 0x%8.8X\n", status)); 126 127 - return ((const char *)"UNKNOWN_STATUS_CODE"); 128 } 129 130 - return ((const char *)exception); 131 } 132 133 /******************************************************************************* ··· 522 return ("invalid_event_iD"); 523 } 524 525 - return ((char *)acpi_gbl_event_types[event_id]); 526 } 527 528 /******************************************************************************* ··· 589 { 590 591 if (type > ACPI_TYPE_INVALID) { 592 - return ((char *)acpi_gbl_bad_type); 593 } 594 595 - return ((char *)acpi_gbl_ns_type_names[type]); 596 } 597 598 char *acpi_ut_get_object_type_name(union acpi_operand_object *obj_desc)
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 67 acpi_status sub_status; 68 const char *exception = NULL; 69 70 + ACPI_FUNCTION_ENTRY(); 71 72 + /* 73 + * Status is composed of two parts, a "type" and an actual code 74 + */ 75 sub_status = (status & ~AE_CODE_MASK); 76 77 switch (status & AE_CODE_MASK) { ··· 118 if (!exception) { 119 /* Exception code was not recognized */ 120 121 + ACPI_REPORT_ERROR(("Unknown exception code: 0x%8.8X\n", 122 + status)); 123 124 + exception = "UNKNOWN_STATUS_CODE"; 125 } 126 127 + return (ACPI_CAST_PTR(const char, exception)); 128 } 129 130 /******************************************************************************* ··· 519 return ("invalid_event_iD"); 520 } 521 522 + return (ACPI_CAST_PTR(char, acpi_gbl_event_types[event_id])); 523 } 524 525 /******************************************************************************* ··· 586 { 587 588 if (type > ACPI_TYPE_INVALID) { 589 + return (ACPI_CAST_PTR(char, acpi_gbl_bad_type)); 590 } 591 592 + return (ACPI_CAST_PTR(char, acpi_gbl_ns_type_names[type])); 593 } 594 595 char *acpi_ut_get_object_type_name(union acpi_operand_object *obj_desc)
+3 -4
drivers/acpi/utilities/utinit.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 221 /* Just exit if subsystem is already shutdown */ 222 223 if (acpi_gbl_shutdown) { 224 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 225 - "ACPI Subsystem is already terminated\n")); 226 return_VOID; 227 } 228 229 /* Subsystem appears active, go ahead and shut it down */ 230 231 acpi_gbl_shutdown = TRUE; 232 - ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Shutting down ACPI Subsystem...\n")); 233 234 /* Close the acpi_event Handling */ 235
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 221 /* Just exit if subsystem is already shutdown */ 222 223 if (acpi_gbl_shutdown) { 224 + ACPI_REPORT_ERROR(("ACPI Subsystem is already terminated\n")); 225 return_VOID; 226 } 227 228 /* Subsystem appears active, go ahead and shut it down */ 229 230 acpi_gbl_shutdown = TRUE; 231 + ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Shutting down ACPI Subsystem\n")); 232 233 /* Close the acpi_event Handling */ 234
+5 -5
drivers/acpi/utilities/utmath.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 82 /* Always check for a zero divisor */ 83 84 if (divisor == 0) { 85 - ACPI_REPORT_ERROR(("acpi_ut_short_divide: Divide by zero\n")); 86 return_ACPI_STATUS(AE_AML_DIVIDE_BY_ZERO); 87 } 88 ··· 144 /* Always check for a zero divisor */ 145 146 if (in_divisor == 0) { 147 - ACPI_REPORT_ERROR(("acpi_ut_divide: Divide by zero\n")); 148 return_ACPI_STATUS(AE_AML_DIVIDE_BY_ZERO); 149 } 150 ··· 266 /* Always check for a zero divisor */ 267 268 if (divisor == 0) { 269 - ACPI_REPORT_ERROR(("acpi_ut_short_divide: Divide by zero\n")); 270 return_ACPI_STATUS(AE_AML_DIVIDE_BY_ZERO); 271 } 272 ··· 292 /* Always check for a zero divisor */ 293 294 if (in_divisor == 0) { 295 - ACPI_REPORT_ERROR(("acpi_ut_divide: Divide by zero\n")); 296 return_ACPI_STATUS(AE_AML_DIVIDE_BY_ZERO); 297 } 298
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 82 /* Always check for a zero divisor */ 83 84 if (divisor == 0) { 85 + ACPI_REPORT_ERROR(("Divide by zero\n")); 86 return_ACPI_STATUS(AE_AML_DIVIDE_BY_ZERO); 87 } 88 ··· 144 /* Always check for a zero divisor */ 145 146 if (in_divisor == 0) { 147 + ACPI_REPORT_ERROR(("Divide by zero\n")); 148 return_ACPI_STATUS(AE_AML_DIVIDE_BY_ZERO); 149 } 150 ··· 266 /* Always check for a zero divisor */ 267 268 if (divisor == 0) { 269 + ACPI_REPORT_ERROR(("Divide by zero\n")); 270 return_ACPI_STATUS(AE_AML_DIVIDE_BY_ZERO); 271 } 272 ··· 292 /* Always check for a zero divisor */ 293 294 if (in_divisor == 0) { 295 + ACPI_REPORT_ERROR(("Divide by zero\n")); 296 return_ACPI_STATUS(AE_AML_DIVIDE_BY_ZERO); 297 } 298
+7 -11
drivers/acpi/utilities/utmisc.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 841 * 842 * PARAMETERS: module_name - Caller's module name (for error output) 843 * line_number - Caller's line number (for error output) 844 - * component_id - Caller's component ID (for error output) 845 * 846 * RETURN: None 847 * ··· 848 * 849 ******************************************************************************/ 850 851 - void acpi_ut_report_error(char *module_name, u32 line_number, u32 component_id) 852 { 853 854 - acpi_os_printf("%8s-%04d: *** Error: ", module_name, line_number); 855 } 856 857 /******************************************************************************* ··· 860 * 861 * PARAMETERS: module_name - Caller's module name (for error output) 862 * line_number - Caller's line number (for error output) 863 - * component_id - Caller's component ID (for error output) 864 * 865 * RETURN: None 866 * ··· 867 * 868 ******************************************************************************/ 869 870 - void 871 - acpi_ut_report_warning(char *module_name, u32 line_number, u32 component_id) 872 { 873 874 - acpi_os_printf("%8s-%04d: *** Warning: ", module_name, line_number); 875 } 876 877 /******************************************************************************* ··· 879 * 880 * PARAMETERS: module_name - Caller's module name (for error output) 881 * line_number - Caller's line number (for error output) 882 - * component_id - Caller's component ID (for error output) 883 * 884 * RETURN: None 885 * ··· 886 * 887 ******************************************************************************/ 888 889 - void acpi_ut_report_info(char *module_name, u32 line_number, u32 component_id) 890 { 891 892 - acpi_os_printf("%8s-%04d: *** Info: ", module_name, line_number); 893 }
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 841 * 842 * PARAMETERS: module_name - Caller's module name (for error output) 843 * line_number - Caller's line number (for error output) 844 * 845 * RETURN: None 846 * ··· 849 * 850 ******************************************************************************/ 851 852 + void acpi_ut_report_error(char *module_name, u32 line_number) 853 { 854 855 + acpi_os_printf("ACPI Error (%s-%04d): ", module_name, line_number); 856 } 857 858 /******************************************************************************* ··· 861 * 862 * PARAMETERS: module_name - Caller's module name (for error output) 863 * line_number - Caller's line number (for error output) 864 * 865 * RETURN: None 866 * ··· 869 * 870 ******************************************************************************/ 871 872 + void acpi_ut_report_warning(char *module_name, u32 line_number) 873 { 874 875 + acpi_os_printf("ACPI Warning (%s-%04d): ", module_name, line_number); 876 } 877 878 /******************************************************************************* ··· 882 * 883 * PARAMETERS: module_name - Caller's module name (for error output) 884 * line_number - Caller's line number (for error output) 885 * 886 * RETURN: None 887 * ··· 890 * 891 ******************************************************************************/ 892 893 + void acpi_ut_report_info(char *module_name, u32 line_number) 894 { 895 896 + acpi_os_printf("ACPI (%s-%04d): ", module_name, line_number); 897 }
+7 -30
drivers/acpi/utilities/utmutex.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 216 for (i = mutex_id; i < MAX_MUTEX; i++) { 217 if (acpi_gbl_mutex_info[i].thread_id == this_thread_id) { 218 if (i == mutex_id) { 219 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 220 - "Mutex [%s] already acquired by this thread [%X]\n", 221 - acpi_ut_get_mutex_name 222 - (mutex_id), 223 - this_thread_id)); 224 225 return (AE_ALREADY_ACQUIRED); 226 } 227 228 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 229 - "Invalid acquire order: Thread %X owns [%s], wants [%s]\n", 230 - this_thread_id, 231 - acpi_ut_get_mutex_name(i), 232 - acpi_ut_get_mutex_name 233 - (mutex_id))); 234 235 return (AE_ACQUIRE_DEADLOCK); 236 } ··· 244 acpi_gbl_mutex_info[mutex_id].use_count++; 245 acpi_gbl_mutex_info[mutex_id].thread_id = this_thread_id; 246 } else { 247 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 248 - "Thread %X could not acquire Mutex [%s] %s\n", 249 - this_thread_id, 250 - acpi_ut_get_mutex_name(mutex_id), 251 - acpi_format_exception(status))); 252 } 253 254 return (status); ··· 282 * Mutex must be acquired in order to release it! 283 */ 284 if (acpi_gbl_mutex_info[mutex_id].thread_id == ACPI_MUTEX_NOT_ACQUIRED) { 285 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 286 - "Mutex [%s] is not acquired, cannot release\n", 287 - acpi_ut_get_mutex_name(mutex_id))); 288 289 return (AE_NOT_ACQUIRED); 290 } ··· 303 continue; 304 } 305 306 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 307 - "Invalid release order: owns [%s], releasing [%s]\n", 308 - acpi_ut_get_mutex_name(i), 309 - acpi_ut_get_mutex_name 310 - (mutex_id))); 311 312 return (AE_RELEASE_DEADLOCK); 313 } ··· 319 acpi_os_signal_semaphore(acpi_gbl_mutex_info[mutex_id].mutex, 1); 320 321 if (ACPI_FAILURE(status)) { 322 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 323 - "Thread %X could not release Mutex [%s] %s\n", 324 - this_thread_id, 325 - acpi_ut_get_mutex_name(mutex_id), 326 - acpi_format_exception(status))); 327 } else { 328 ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, 329 "Thread %X released Mutex [%s]\n",
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 216 for (i = mutex_id; i < MAX_MUTEX; i++) { 217 if (acpi_gbl_mutex_info[i].thread_id == this_thread_id) { 218 if (i == mutex_id) { 219 + ACPI_REPORT_ERROR(("Mutex [%s] already acquired by this thread [%X]\n", acpi_ut_get_mutex_name(mutex_id), this_thread_id)); 220 221 return (AE_ALREADY_ACQUIRED); 222 } 223 224 + ACPI_REPORT_ERROR(("Invalid acquire order: Thread %X owns [%s], wants [%s]\n", this_thread_id, acpi_ut_get_mutex_name(i), acpi_ut_get_mutex_name(mutex_id))); 225 226 return (AE_ACQUIRE_DEADLOCK); 227 } ··· 253 acpi_gbl_mutex_info[mutex_id].use_count++; 254 acpi_gbl_mutex_info[mutex_id].thread_id = this_thread_id; 255 } else { 256 + ACPI_REPORT_ERROR(("Thread %X could not acquire Mutex [%X] %s\n", this_thread_id, mutex_id, acpi_format_exception(status))); 257 } 258 259 return (status); ··· 295 * Mutex must be acquired in order to release it! 296 */ 297 if (acpi_gbl_mutex_info[mutex_id].thread_id == ACPI_MUTEX_NOT_ACQUIRED) { 298 + ACPI_REPORT_ERROR(("Mutex [%X] is not acquired, cannot release\n", mutex_id)); 299 300 return (AE_NOT_ACQUIRED); 301 } ··· 318 continue; 319 } 320 321 + ACPI_REPORT_ERROR(("Invalid release order: owns [%s], releasing [%s]\n", acpi_ut_get_mutex_name(i), acpi_ut_get_mutex_name(mutex_id))); 322 323 return (AE_RELEASE_DEADLOCK); 324 } ··· 338 acpi_os_signal_semaphore(acpi_gbl_mutex_info[mutex_id].mutex, 1); 339 340 if (ACPI_FAILURE(status)) { 341 + ACPI_REPORT_ERROR(("Thread %X could not release Mutex [%X] %s\n", this_thread_id, mutex_id, acpi_format_exception(status))); 342 } else { 343 ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, 344 "Thread %X released Mutex [%s]\n",
+13 -15
drivers/acpi/utilities/utobject.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 177 178 buffer = ACPI_MEM_CALLOCATE(buffer_size); 179 if (!buffer) { 180 - ACPI_REPORT_ERROR(("create_buffer: could not allocate size %X\n", (u32) buffer_size)); 181 acpi_ut_remove_reference(buffer_desc); 182 return_PTR(NULL); 183 } ··· 229 */ 230 string = ACPI_MEM_CALLOCATE(string_size + 1); 231 if (!string) { 232 - ACPI_REPORT_ERROR(("create_string: could not allocate size %X\n", (u32) string_size)); 233 acpi_ut_remove_reference(string_desc); 234 return_PTR(NULL); 235 } ··· 312 313 object = acpi_os_acquire_object(acpi_gbl_operand_cache); 314 if (!object) { 315 - _ACPI_REPORT_ERROR(module_name, line_number, component_id, 316 ("Could not allocate an object descriptor\n")); 317 318 return_PTR(NULL); ··· 347 /* Object must be an union acpi_operand_object */ 348 349 if (ACPI_GET_DESCRIPTOR_TYPE(object) != ACPI_DESC_TYPE_OPERAND) { 350 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 351 - "%p is not an ACPI Operand object [%s]\n", 352 - object, acpi_ut_get_descriptor_name(object))); 353 return_VOID; 354 } 355 ··· 451 * Notably, Locals and Args are not supported, but this may be 452 * required eventually. 453 */ 454 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 455 - "Unsupported Reference opcode=%X in object %p\n", 456 - internal_object->reference.opcode, 457 - internal_object)); 458 status = AE_TYPE; 459 break; 460 } ··· 459 460 default: 461 462 - ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 463 - "Unsupported type=%X in object %p\n", 464 - ACPI_GET_OBJECT_TYPE(internal_object), 465 - internal_object)); 466 status = AE_TYPE; 467 break; 468 }
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 177 178 buffer = ACPI_MEM_CALLOCATE(buffer_size); 179 if (!buffer) { 180 + ACPI_REPORT_ERROR(("Could not allocate size %X\n", 181 + (u32) buffer_size)); 182 acpi_ut_remove_reference(buffer_desc); 183 return_PTR(NULL); 184 } ··· 228 */ 229 string = ACPI_MEM_CALLOCATE(string_size + 1); 230 if (!string) { 231 + ACPI_REPORT_ERROR(("Could not allocate size %X\n", 232 + (u32) string_size)); 233 acpi_ut_remove_reference(string_desc); 234 return_PTR(NULL); 235 } ··· 310 311 object = acpi_os_acquire_object(acpi_gbl_operand_cache); 312 if (!object) { 313 + _ACPI_REPORT_ERROR(module_name, line_number, 314 ("Could not allocate an object descriptor\n")); 315 316 return_PTR(NULL); ··· 345 /* Object must be an union acpi_operand_object */ 346 347 if (ACPI_GET_DESCRIPTOR_TYPE(object) != ACPI_DESC_TYPE_OPERAND) { 348 + ACPI_REPORT_ERROR(("%p is not an ACPI Operand object [%s]\n", 349 + object, 350 + acpi_ut_get_descriptor_name(object))); 351 return_VOID; 352 } 353 ··· 449 * Notably, Locals and Args are not supported, but this may be 450 * required eventually. 451 */ 452 + ACPI_REPORT_ERROR(("Unsupported Reference opcode=%X in object %p\n", internal_object->reference.opcode, internal_object)); 453 status = AE_TYPE; 454 break; 455 } ··· 460 461 default: 462 463 + ACPI_REPORT_ERROR(("Unsupported type=%X in object %p\n", 464 + ACPI_GET_OBJECT_TYPE(internal_object), 465 + internal_object)); 466 status = AE_TYPE; 467 break; 468 }
+1 -1
drivers/acpi/utilities/utresrc.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
drivers/acpi/utilities/utstate.c
··· 5 ******************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 ******************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+3 -4
drivers/acpi/utilities/utxface.c
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 75 76 status = acpi_os_initialize(); 77 if (ACPI_FAILURE(status)) { 78 - ACPI_REPORT_ERROR(("OSD failed to initialize, %s\n", 79 acpi_format_exception(status))); 80 return_ACPI_STATUS(status); 81 } ··· 154 155 status = acpi_enable(); 156 if (ACPI_FAILURE(status)) { 157 - ACPI_DEBUG_PRINT((ACPI_DB_WARN, 158 - "acpi_enable failed.\n")); 159 return_ACPI_STATUS(status); 160 } 161 }
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 75 76 status = acpi_os_initialize(); 77 if (ACPI_FAILURE(status)) { 78 + ACPI_REPORT_ERROR(("OSL failed to initialize, %s\n", 79 acpi_format_exception(status))); 80 return_ACPI_STATUS(status); 81 } ··· 154 155 status = acpi_enable(); 156 if (ACPI_FAILURE(status)) { 157 + ACPI_REPORT_WARNING(("acpi_enable failed\n")); 158 return_ACPI_STATUS(status); 159 } 160 }
+2 -2
include/acpi/acconfig.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 63 64 /* Current ACPICA subsystem version in YYYYMMDD format */ 65 66 - #define ACPI_CA_VERSION 0x20051216 67 68 /* 69 * OS name, used for the _OS object. The _OS object is essentially obsolete,
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 63 64 /* Current ACPICA subsystem version in YYYYMMDD format */ 65 66 + #define ACPI_CA_VERSION 0x20060113 67 68 /* 69 * OS name, used for the _OS object. The _OS object is essentially obsolete,
+1 -1
include/acpi/acdebug.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/acdisasm.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/acdispat.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/acevents.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/acexcep.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/acglobal.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/achware.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/acinterp.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/aclocal.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+50 -43
include/acpi/acmacros.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 443 #define INCREMENT_ARG_LIST(list) (list >>= ((u32) ARG_TYPE_WIDTH)) 444 445 /* 446 - * Reporting macros that are never compiled out 447 */ 448 - #define ACPI_PARAM_LIST(pl) pl 449 450 - /* 451 - * Error reporting. These versions add callers module and line#. 452 - * 453 - * Since _acpi_module_name gets compiled out when ACPI_DEBUG_OUTPUT 454 - * isn't defined, only use it in debug mode. 455 - */ 456 - #ifdef ACPI_DEBUG_OUTPUT 457 - 458 - #define ACPI_REPORT_INFO(fp) {acpi_ut_report_info(_acpi_module_name,__LINE__,_COMPONENT); \ 459 - acpi_os_printf ACPI_PARAM_LIST(fp);} 460 - #define ACPI_REPORT_ERROR(fp) {acpi_ut_report_error(_acpi_module_name,__LINE__,_COMPONENT); \ 461 - acpi_os_printf ACPI_PARAM_LIST(fp);} 462 - #define ACPI_REPORT_WARNING(fp) {acpi_ut_report_warning(_acpi_module_name,__LINE__,_COMPONENT); \ 463 - acpi_os_printf ACPI_PARAM_LIST(fp);} 464 - #define ACPI_REPORT_NSERROR(s,e) acpi_ns_report_error(_acpi_module_name,__LINE__,_COMPONENT, s, e); 465 - 466 - #define ACPI_REPORT_METHOD_ERROR(s,n,p,e) acpi_ns_report_method_error(_acpi_module_name,__LINE__,_COMPONENT, s, n, p, e); 467 - 468 #else 469 - 470 - #define ACPI_REPORT_INFO(fp) {acpi_ut_report_info("ACPI",__LINE__,_COMPONENT); \ 471 - acpi_os_printf ACPI_PARAM_LIST(fp);} 472 - #define ACPI_REPORT_ERROR(fp) {acpi_ut_report_error("ACPI",__LINE__,_COMPONENT); \ 473 - acpi_os_printf ACPI_PARAM_LIST(fp);} 474 - #define ACPI_REPORT_WARNING(fp) {acpi_ut_report_warning("ACPI",__LINE__,_COMPONENT); \ 475 - acpi_os_printf ACPI_PARAM_LIST(fp);} 476 - #define ACPI_REPORT_NSERROR(s,e) acpi_ns_report_error("ACPI",__LINE__,_COMPONENT, s, e); 477 - 478 - #define ACPI_REPORT_METHOD_ERROR(s,n,p,e) acpi_ns_report_method_error("ACPI",__LINE__,_COMPONENT, s, n, p, e); 479 - 480 #endif 481 482 - /* Error reporting. These versions pass thru the module and line# */ 483 484 - #define _ACPI_REPORT_INFO(a,b,c,fp) {acpi_ut_report_info(a,b,c); \ 485 - acpi_os_printf ACPI_PARAM_LIST(fp);} 486 - #define _ACPI_REPORT_ERROR(a,b,c,fp) {acpi_ut_report_error(a,b,c); \ 487 - acpi_os_printf ACPI_PARAM_LIST(fp);} 488 - #define _ACPI_REPORT_WARNING(a,b,c,fp) {acpi_ut_report_warning(a,b,c); \ 489 - acpi_os_printf ACPI_PARAM_LIST(fp);} 490 491 /* 492 * Debug macros that are conditionally compiled 493 */ 494 #ifdef ACPI_DEBUG_OUTPUT 495 - #define ACPI_MODULE_NAME(name) static char ACPI_UNUSED_VAR *_acpi_module_name = name; 496 497 /* 498 * Common parameters used for debug output functions: ··· 659 * This is the non-debug case -- make everything go away, 660 * leaving no executable debug code! 661 */ 662 - #define ACPI_MODULE_NAME(name) 663 - #define _acpi_module_name "" 664 - 665 #define ACPI_DEBUG_EXEC(a) 666 #define ACPI_NORMAL_EXEC(a) a; 667
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 443 #define INCREMENT_ARG_LIST(list) (list >>= ((u32) ARG_TYPE_WIDTH)) 444 445 /* 446 + * Module name is include in both debug and non-debug versions primarily for 447 + * error messages. The __FILE__ macro is not very useful for this, because it 448 + * often includes the entire pathname to the module 449 */ 450 + #if defined (ACPI_DEBUG_OUTPUT) || !defined (ACPI_NO_ERROR_MESSAGES) 451 452 + #define ACPI_MODULE_NAME(name) static char ACPI_UNUSED_VAR *_acpi_module_name = name; 453 #else 454 + #define ACPI_MODULE_NAME(name) 455 #endif 456 457 + /* 458 + * Ascii error messages can be configured out 459 + */ 460 + #ifndef ACPI_NO_ERROR_MESSAGES 461 462 + #define ACPI_PARAM_LIST(pl) pl 463 + #define ACPI_LOCATION_INFO _acpi_module_name, __LINE__ 464 + 465 + /* 466 + * Error reporting. Callers module and line number are inserted automatically 467 + * These macros are used for both the debug and non-debug versions of the code 468 + */ 469 + #define ACPI_REPORT_INFO(fp) {acpi_ut_report_info (ACPI_LOCATION_INFO); \ 470 + acpi_os_printf ACPI_PARAM_LIST (fp);} 471 + #define ACPI_REPORT_ERROR(fp) {acpi_ut_report_error (ACPI_LOCATION_INFO); \ 472 + acpi_os_printf ACPI_PARAM_LIST (fp);} 473 + #define ACPI_REPORT_WARNING(fp) {acpi_ut_report_warning (ACPI_LOCATION_INFO); \ 474 + acpi_os_printf ACPI_PARAM_LIST (fp);} 475 + #define ACPI_REPORT_NSERROR(s,e) acpi_ns_report_error (ACPI_LOCATION_INFO, \ 476 + s, e); 477 + #define ACPI_REPORT_MTERROR(s,n,p,e) acpi_ns_report_method_error (ACPI_LOCATION_INFO, \ 478 + s, n, p, e); 479 + 480 + /* Error reporting. These versions pass thru the module and lineno */ 481 + 482 + #define _ACPI_REPORT_INFO(a,b,fp) {acpi_ut_report_info (a,b); \ 483 + acpi_os_printf ACPI_PARAM_LIST (fp);} 484 + #define _ACPI_REPORT_ERROR(a,b,fp) {acpi_ut_report_error (a,b); \ 485 + acpi_os_printf ACPI_PARAM_LIST (fp);} 486 + #define _ACPI_REPORT_WARNING(a,b,fp) {acpi_ut_report_warning (a,b); \ 487 + acpi_os_printf ACPI_PARAM_LIST (fp);} 488 + #else 489 + 490 + /* No error messages */ 491 + 492 + #define ACPI_REPORT_INFO(fp) 493 + #define ACPI_REPORT_ERROR(fp) 494 + #define ACPI_REPORT_WARNING(fp) 495 + #define ACPI_REPORT_NSERROR(s,e) 496 + #define ACPI_REPORT_MTERROR(s,n,p,e) 497 + #define _ACPI_REPORT_INFO(a,b,c,fp) 498 + #define _ACPI_REPORT_ERROR(a,b,c,fp) 499 + #define _ACPI_REPORT_WARNING(a,b,c,fp) 500 + #endif 501 502 /* 503 * Debug macros that are conditionally compiled 504 */ 505 #ifdef ACPI_DEBUG_OUTPUT 506 507 /* 508 * Common parameters used for debug output functions: ··· 649 * This is the non-debug case -- make everything go away, 650 * leaving no executable debug code! 651 */ 652 #define ACPI_DEBUG_EXEC(a) 653 #define ACPI_NORMAL_EXEC(a) a; 654
+1 -1
include/acpi/acnames.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -3
include/acpi/acnamesp.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 263 void 264 acpi_ns_report_error(char *module_name, 265 u32 line_number, 266 - u32 component_id, 267 char *internal_name, acpi_status lookup_status); 268 269 void 270 acpi_ns_report_method_error(char *module_name, 271 u32 line_number, 272 - u32 component_id, 273 char *message, 274 struct acpi_namespace_node *node, 275 char *path, acpi_status lookup_status);
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 263 void 264 acpi_ns_report_error(char *module_name, 265 u32 line_number, 266 char *internal_name, acpi_status lookup_status); 267 268 void 269 acpi_ns_report_method_error(char *module_name, 270 u32 line_number, 271 char *message, 272 struct acpi_namespace_node *node, 273 char *path, acpi_status lookup_status);
+1 -1
include/acpi/acobject.h
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/acopcode.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+9 -3
include/acpi/acoutput.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 137 138 /* Exception level -- used in the global "debug_level" */ 139 140 - #define ACPI_DB_ERROR ACPI_DEBUG_LEVEL (ACPI_LV_ERROR) 141 - #define ACPI_DB_WARN ACPI_DEBUG_LEVEL (ACPI_LV_WARN) 142 #define ACPI_DB_INIT ACPI_DEBUG_LEVEL (ACPI_LV_INIT) 143 #define ACPI_DB_DEBUG_OBJECT ACPI_DEBUG_LEVEL (ACPI_LV_DEBUG_OBJECT) 144 #define ACPI_DB_INFO ACPI_DEBUG_LEVEL (ACPI_LV_INFO) 145 #define ACPI_DB_ALL_EXCEPTIONS ACPI_DEBUG_LEVEL (ACPI_LV_ALL_EXCEPTIONS) 146 147 /* Trace level -- also used in the global "debug_level" */ 148
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 137 138 /* Exception level -- used in the global "debug_level" */ 139 140 #define ACPI_DB_INIT ACPI_DEBUG_LEVEL (ACPI_LV_INIT) 141 #define ACPI_DB_DEBUG_OBJECT ACPI_DEBUG_LEVEL (ACPI_LV_DEBUG_OBJECT) 142 #define ACPI_DB_INFO ACPI_DEBUG_LEVEL (ACPI_LV_INFO) 143 #define ACPI_DB_ALL_EXCEPTIONS ACPI_DEBUG_LEVEL (ACPI_LV_ALL_EXCEPTIONS) 144 + 145 + /* 146 + * These two levels are essentially obsolete, all instances in the 147 + * ACPICA core code have been replaced by REPORT_ERROR and REPORT_WARNING 148 + * (Kept here because some drivers may still use them) 149 + */ 150 + #define ACPI_DB_ERROR ACPI_DEBUG_LEVEL (ACPI_LV_ERROR) 151 + #define ACPI_DB_WARN ACPI_DEBUG_LEVEL (ACPI_LV_WARN) 152 153 /* Trace level -- also used in the global "debug_level" */ 154
+1 -1
include/acpi/acparser.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/acpi.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/acpiosxf.h
··· 8 *****************************************************************************/ 9 10 /* 11 - * Copyright (C) 2000 - 2005, R. Byron Moore 12 * All rights reserved. 13 * 14 * Redistribution and use in source and binary forms, with or without
··· 8 *****************************************************************************/ 9 10 /* 11 + * Copyright (C) 2000 - 2006, R. Byron Moore 12 * All rights reserved. 13 * 14 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/acpixf.h
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/acresrc.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/acstruct.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/actables.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/actbl.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/actbl1.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/actbl2.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/actypes.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+4 -5
include/acpi/acutils.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 275 const char *function_name, 276 char *module_name, u32 component_id, u8 * ptr); 277 278 - void acpi_ut_report_info(char *module_name, u32 line_number, u32 component_id); 279 280 - void acpi_ut_report_error(char *module_name, u32 line_number, u32 component_id); 281 282 - void 283 - acpi_ut_report_warning(char *module_name, u32 line_number, u32 component_id); 284 285 void acpi_ut_dump_buffer(u8 * buffer, u32 count, u32 display, u32 component_id); 286
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without ··· 275 const char *function_name, 276 char *module_name, u32 component_id, u8 * ptr); 277 278 + void acpi_ut_report_error(char *module_name, u32 line_number); 279 280 + void acpi_ut_report_info(char *module_name, u32 line_number); 281 282 + void acpi_ut_report_warning(char *module_name, u32 line_number); 283 284 void acpi_ut_dump_buffer(u8 * buffer, u32 count, u32 display, u32 component_id); 285
+1 -1
include/acpi/amlcode.h
··· 7 *****************************************************************************/ 8 9 /* 10 - * Copyright (C) 2000 - 2005, R. Byron Moore 11 * All rights reserved. 12 * 13 * Redistribution and use in source and binary forms, with or without
··· 7 *****************************************************************************/ 8 9 /* 10 + * Copyright (C) 2000 - 2006, R. Byron Moore 11 * All rights reserved. 12 * 13 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/amlresrc.h
··· 6 *****************************************************************************/ 7 8 /* 9 - * Copyright (C) 2000 - 2005, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
··· 6 *****************************************************************************/ 7 8 /* 9 + * Copyright (C) 2000 - 2006, R. Byron Moore 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/platform/acenv.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/platform/acgcc.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
+1 -1
include/acpi/platform/aclinux.h
··· 5 *****************************************************************************/ 6 7 /* 8 - * Copyright (C) 2000 - 2005, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without
··· 5 *****************************************************************************/ 6 7 /* 8 + * Copyright (C) 2000 - 2006, R. Byron Moore 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without