diff options
author | Bob Moore <robert.moore@intel.com> | 2006-01-13 16:22:00 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-01-20 02:23:50 -0500 |
commit | 4a90c7e86202f46fa9af011bdbcdf36e355d1721 (patch) | |
tree | 3784cffb2166330d6f94ea53996fbeef36f58ce3 /drivers/acpi/events/evregion.c | |
parent | 3c5c363826e435cf4d54d917202567e5b57cae5f (diff) |
[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>
Diffstat (limited to 'drivers/acpi/events/evregion.c')
-rw-r--r-- | drivers/acpi/events/evregion.c | 45 |
1 files changed, 14 insertions, 31 deletions
diff --git a/drivers/acpi/events/evregion.c b/drivers/acpi/events/evregion.c index 84fad082d80d..900e5b32e595 100644 --- a/drivers/acpi/events/evregion.c +++ b/drivers/acpi/events/evregion.c | |||
@@ -5,7 +5,7 @@ | |||
5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
@@ -295,12 +295,11 @@ acpi_ev_address_space_dispatch(union acpi_operand_object *region_obj, | |||
295 | 295 | ||
296 | handler_desc = region_obj->region.handler; | 296 | handler_desc = region_obj->region.handler; |
297 | if (!handler_desc) { | 297 | if (!handler_desc) { |
298 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 298 | ACPI_REPORT_ERROR(("No handler for Region [%4.4s] (%p) [%s]\n", |
299 | "No handler for Region [%4.4s] (%p) [%s]\n", | 299 | acpi_ut_get_node_name(region_obj->region. |
300 | acpi_ut_get_node_name(region_obj->region. | 300 | node), region_obj, |
301 | node), region_obj, | 301 | acpi_ut_get_region_name(region_obj->region. |
302 | acpi_ut_get_region_name(region_obj->region. | 302 | space_id))); |
303 | space_id))); | ||
304 | 303 | ||
305 | return_ACPI_STATUS(AE_NOT_EXIST); | 304 | return_ACPI_STATUS(AE_NOT_EXIST); |
306 | } | 305 | } |
@@ -317,12 +316,7 @@ acpi_ev_address_space_dispatch(union acpi_operand_object *region_obj, | |||
317 | if (!region_setup) { | 316 | if (!region_setup) { |
318 | /* No initialization routine, exit with error */ | 317 | /* No initialization routine, exit with error */ |
319 | 318 | ||
320 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 319 | ACPI_REPORT_ERROR(("No init routine for region(%p) [%s]\n", region_obj, acpi_ut_get_region_name(region_obj->region.space_id))); |
321 | "No init routine for region(%p) [%s]\n", | ||
322 | region_obj, | ||
323 | acpi_ut_get_region_name(region_obj-> | ||
324 | region. | ||
325 | space_id))); | ||
326 | return_ACPI_STATUS(AE_NOT_EXIST); | 320 | return_ACPI_STATUS(AE_NOT_EXIST); |
327 | } | 321 | } |
328 | 322 | ||
@@ -347,12 +341,11 @@ acpi_ev_address_space_dispatch(union acpi_operand_object *region_obj, | |||
347 | /* Check for failure of the Region Setup */ | 341 | /* Check for failure of the Region Setup */ |
348 | 342 | ||
349 | if (ACPI_FAILURE(status)) { | 343 | if (ACPI_FAILURE(status)) { |
350 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 344 | ACPI_REPORT_ERROR(("Region Initialization: %s [%s]\n", |
351 | "Region Init: %s [%s]\n", | 345 | acpi_format_exception(status), |
352 | acpi_format_exception(status), | 346 | acpi_ut_get_region_name(region_obj-> |
353 | acpi_ut_get_region_name(region_obj-> | 347 | region. |
354 | region. | 348 | space_id))); |
355 | space_id))); | ||
356 | return_ACPI_STATUS(status); | 349 | return_ACPI_STATUS(status); |
357 | } | 350 | } |
358 | 351 | ||
@@ -501,12 +494,7 @@ acpi_ev_detach_region(union acpi_operand_object *region_obj, | |||
501 | 494 | ||
502 | status = acpi_ev_execute_reg_method(region_obj, 0); | 495 | status = acpi_ev_execute_reg_method(region_obj, 0); |
503 | if (ACPI_FAILURE(status)) { | 496 | if (ACPI_FAILURE(status)) { |
504 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 497 | ACPI_REPORT_ERROR(("%s from region _REG, [%s]\n", acpi_format_exception(status), acpi_ut_get_region_name(region_obj->region.space_id))); |
505 | "%s from region _REG, [%s]\n", | ||
506 | acpi_format_exception(status), | ||
507 | acpi_ut_get_region_name | ||
508 | (region_obj->region. | ||
509 | space_id))); | ||
510 | } | 498 | } |
511 | 499 | ||
512 | if (acpi_ns_is_locked) { | 500 | if (acpi_ns_is_locked) { |
@@ -528,12 +516,7 @@ acpi_ev_detach_region(union acpi_operand_object *region_obj, | |||
528 | /* Init routine may fail, Just ignore errors */ | 516 | /* Init routine may fail, Just ignore errors */ |
529 | 517 | ||
530 | if (ACPI_FAILURE(status)) { | 518 | if (ACPI_FAILURE(status)) { |
531 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 519 | ACPI_REPORT_ERROR(("%s from region init, [%s]\n", acpi_format_exception(status), acpi_ut_get_region_name(region_obj->region.space_id))); |
532 | "%s from region init, [%s]\n", | ||
533 | acpi_format_exception(status), | ||
534 | acpi_ut_get_region_name | ||
535 | (region_obj->region. | ||
536 | space_id))); | ||
537 | } | 520 | } |
538 | 521 | ||
539 | region_obj->region.flags &= ~(AOPOBJ_SETUP_COMPLETE); | 522 | region_obj->region.flags &= ~(AOPOBJ_SETUP_COMPLETE); |