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/evgpe.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/evgpe.c')
-rw-r--r-- | drivers/acpi/events/evgpe.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/drivers/acpi/events/evgpe.c b/drivers/acpi/events/evgpe.c index bdd86537738e..353b907edbfa 100644 --- a/drivers/acpi/events/evgpe.c +++ b/drivers/acpi/events/evgpe.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 |
@@ -599,7 +599,9 @@ acpi_ev_gpe_dispatch(struct acpi_gpe_event_info *gpe_event_info, u32 gpe_number) | |||
599 | ACPI_GPE_EDGE_TRIGGERED) { | 599 | ACPI_GPE_EDGE_TRIGGERED) { |
600 | status = acpi_hw_clear_gpe(gpe_event_info); | 600 | status = acpi_hw_clear_gpe(gpe_event_info); |
601 | if (ACPI_FAILURE(status)) { | 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 | return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); | 605 | return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); |
604 | } | 606 | } |
605 | } | 607 | } |
@@ -637,7 +639,7 @@ acpi_ev_gpe_dispatch(struct acpi_gpe_event_info *gpe_event_info, u32 gpe_number) | |||
637 | ACPI_GPE_LEVEL_TRIGGERED) { | 639 | ACPI_GPE_LEVEL_TRIGGERED) { |
638 | status = acpi_hw_clear_gpe(gpe_event_info); | 640 | status = acpi_hw_clear_gpe(gpe_event_info); |
639 | if (ACPI_FAILURE(status)) { | 641 | if (ACPI_FAILURE(status)) { |
640 | ACPI_REPORT_ERROR(("acpi_ev_gpe_dispatch: %s, Unable to clear GPE[%2X]\n", acpi_format_exception(status), gpe_number)); | 642 | ACPI_REPORT_ERROR(("%s, Unable to clear GPE[%2X]\n", acpi_format_exception(status), gpe_number)); |
641 | return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); | 643 | return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); |
642 | } | 644 | } |
643 | } | 645 | } |
@@ -651,7 +653,9 @@ acpi_ev_gpe_dispatch(struct acpi_gpe_event_info *gpe_event_info, u32 gpe_number) | |||
651 | */ | 653 | */ |
652 | status = acpi_ev_disable_gpe(gpe_event_info); | 654 | status = acpi_ev_disable_gpe(gpe_event_info); |
653 | if (ACPI_FAILURE(status)) { | 655 | if (ACPI_FAILURE(status)) { |
654 | ACPI_REPORT_ERROR(("acpi_ev_gpe_dispatch: %s, Unable to disable GPE[%2X]\n", acpi_format_exception(status), gpe_number)); | 656 | ACPI_REPORT_ERROR(("%s, Unable to disable GPE[%2X]\n", |
657 | acpi_format_exception(status), | ||
658 | gpe_number)); | ||
655 | return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); | 659 | return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); |
656 | } | 660 | } |
657 | 661 | ||
@@ -663,7 +667,7 @@ acpi_ev_gpe_dispatch(struct acpi_gpe_event_info *gpe_event_info, u32 gpe_number) | |||
663 | acpi_ev_asynch_execute_gpe_method, | 667 | acpi_ev_asynch_execute_gpe_method, |
664 | gpe_event_info); | 668 | gpe_event_info); |
665 | if (ACPI_FAILURE(status)) { | 669 | if (ACPI_FAILURE(status)) { |
666 | ACPI_REPORT_ERROR(("acpi_ev_gpe_dispatch: %s, Unable to queue handler for GPE[%2X] - event disabled\n", acpi_format_exception(status), gpe_number)); | 670 | ACPI_REPORT_ERROR(("%s, Unable to queue handler for GPE[%2X] - event disabled\n", acpi_format_exception(status), gpe_number)); |
667 | } | 671 | } |
668 | break; | 672 | break; |
669 | 673 | ||
@@ -671,7 +675,7 @@ acpi_ev_gpe_dispatch(struct acpi_gpe_event_info *gpe_event_info, u32 gpe_number) | |||
671 | 675 | ||
672 | /* No handler or method to run! */ | 676 | /* No handler or method to run! */ |
673 | 677 | ||
674 | ACPI_REPORT_ERROR(("acpi_ev_gpe_dispatch: No handler or method for GPE[%2X], disabling event\n", gpe_number)); | 678 | ACPI_REPORT_ERROR(("No handler or method for GPE[%2X], disabling event\n", gpe_number)); |
675 | 679 | ||
676 | /* | 680 | /* |
677 | * Disable the GPE. The GPE will remain disabled until the ACPI | 681 | * Disable the GPE. The GPE will remain disabled until the ACPI |
@@ -679,7 +683,9 @@ acpi_ev_gpe_dispatch(struct acpi_gpe_event_info *gpe_event_info, u32 gpe_number) | |||
679 | */ | 683 | */ |
680 | status = acpi_ev_disable_gpe(gpe_event_info); | 684 | status = acpi_ev_disable_gpe(gpe_event_info); |
681 | if (ACPI_FAILURE(status)) { | 685 | if (ACPI_FAILURE(status)) { |
682 | ACPI_REPORT_ERROR(("acpi_ev_gpe_dispatch: %s, Unable to disable GPE[%2X]\n", acpi_format_exception(status), gpe_number)); | 686 | ACPI_REPORT_ERROR(("%s, Unable to disable GPE[%2X]\n", |
687 | acpi_format_exception(status), | ||
688 | gpe_number)); | ||
683 | return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); | 689 | return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); |
684 | } | 690 | } |
685 | break; | 691 | break; |