aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/hardware/hwacpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/hardware/hwacpi.c')
-rw-r--r--drivers/acpi/hardware/hwacpi.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/acpi/hardware/hwacpi.c b/drivers/acpi/hardware/hwacpi.c
index 5c068cc4f674..ea2f13271ff1 100644
--- a/drivers/acpi/hardware/hwacpi.c
+++ b/drivers/acpi/hardware/hwacpi.c
@@ -68,7 +68,7 @@ acpi_status acpi_hw_initialize(void)
68 /* We must have the ACPI tables by the time we get here */ 68 /* We must have the ACPI tables by the time we get here */
69 69
70 if (!acpi_gbl_FADT) { 70 if (!acpi_gbl_FADT) {
71 ACPI_REPORT_ERROR(("No FADT is present\n")); 71 ACPI_ERROR((AE_INFO, "No FADT is present"));
72 return_ACPI_STATUS(AE_NO_ACPI_TABLES); 72 return_ACPI_STATUS(AE_NO_ACPI_TABLES);
73 } 73 }
74 74
@@ -107,7 +107,8 @@ acpi_status acpi_hw_set_mode(u32 mode)
107 * system does not support mode transition. 107 * system does not support mode transition.
108 */ 108 */
109 if (!acpi_gbl_FADT->smi_cmd) { 109 if (!acpi_gbl_FADT->smi_cmd) {
110 ACPI_REPORT_ERROR(("No SMI_CMD in FADT, mode transition failed\n")); 110 ACPI_ERROR((AE_INFO,
111 "No SMI_CMD in FADT, mode transition failed"));
111 return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE); 112 return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE);
112 } 113 }
113 114
@@ -119,7 +120,8 @@ acpi_status acpi_hw_set_mode(u32 mode)
119 * transitions are not supported. 120 * transitions are not supported.
120 */ 121 */
121 if (!acpi_gbl_FADT->acpi_enable && !acpi_gbl_FADT->acpi_disable) { 122 if (!acpi_gbl_FADT->acpi_enable && !acpi_gbl_FADT->acpi_disable) {
122 ACPI_REPORT_ERROR(("No ACPI mode transition supported in this system (enable/disable both zero)\n")); 123 ACPI_ERROR((AE_INFO,
124 "No ACPI mode transition supported in this system (enable/disable both zero)"));
123 return_ACPI_STATUS(AE_OK); 125 return_ACPI_STATUS(AE_OK);
124 } 126 }
125 127
@@ -153,8 +155,8 @@ acpi_status acpi_hw_set_mode(u32 mode)
153 } 155 }
154 156
155 if (ACPI_FAILURE(status)) { 157 if (ACPI_FAILURE(status)) {
156 ACPI_REPORT_ERROR(("Could not write mode change, %s\n", 158 ACPI_EXCEPTION((AE_INFO, status,
157 acpi_format_exception(status))); 159 "Could not write ACPI mode change"));
158 return_ACPI_STATUS(status); 160 return_ACPI_STATUS(status);
159 } 161 }
160 162
@@ -174,7 +176,7 @@ acpi_status acpi_hw_set_mode(u32 mode)
174 retry--; 176 retry--;
175 } 177 }
176 178
177 ACPI_REPORT_ERROR(("Hardware never changed modes\n")); 179 ACPI_ERROR((AE_INFO, "Hardware did not change modes"));
178 return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE); 180 return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE);
179} 181}
180 182