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