diff options
author | Thomas Renninger <trenn@suse.de> | 2006-06-26 23:58:43 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-06-26 23:58:43 -0400 |
commit | a6fc67202e0224e6c9d1d285cc0b444bce887ed5 (patch) | |
tree | cb2d422f65c0ab0a95f452f6bac80e2bfdd547de /drivers/acpi/bus.c | |
parent | eb99adde31b7d85c67a5e1c2fa5e098e1056dd79 (diff) |
ACPI: Enable ACPI error messages w/o CONFIG_ACPI_DEBUG
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/bus.c')
-rw-r--r-- | drivers/acpi/bus.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index dd3983cece92..917bf2397b22 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c | |||
@@ -69,8 +69,7 @@ int acpi_bus_get_device(acpi_handle handle, struct acpi_device **device) | |||
69 | 69 | ||
70 | status = acpi_get_data(handle, acpi_bus_data_handler, (void **)device); | 70 | status = acpi_get_data(handle, acpi_bus_data_handler, (void **)device); |
71 | if (ACPI_FAILURE(status) || !*device) { | 71 | if (ACPI_FAILURE(status) || !*device) { |
72 | ACPI_DEBUG_PRINT((ACPI_DB_WARN, "No context for object [%p]\n", | 72 | ACPI_EXCEPTION((AE_INFO, status, "No context for object [%p]", handle)); |
73 | handle)); | ||
74 | return_VALUE(-ENODEV); | 73 | return_VALUE(-ENODEV); |
75 | } | 74 | } |
76 | 75 | ||
@@ -197,8 +196,7 @@ int acpi_bus_set_power(acpi_handle handle, int state) | |||
197 | /* Make sure this is a valid target state */ | 196 | /* Make sure this is a valid target state */ |
198 | 197 | ||
199 | if (!device->flags.power_manageable) { | 198 | if (!device->flags.power_manageable) { |
200 | ACPI_DEBUG_PRINT((ACPI_DB_WARN, | 199 | ACPI_INFO((AE_INFO, "Device is not power manageable")); |
201 | "Device is not power manageable\n")); | ||
202 | return_VALUE(-ENODEV); | 200 | return_VALUE(-ENODEV); |
203 | } | 201 | } |
204 | /* | 202 | /* |
@@ -215,13 +213,13 @@ int acpi_bus_set_power(acpi_handle handle, int state) | |||
215 | } | 213 | } |
216 | } | 214 | } |
217 | if (!device->power.states[state].flags.valid) { | 215 | if (!device->power.states[state].flags.valid) { |
218 | ACPI_DEBUG_PRINT((ACPI_DB_WARN, "Device does not support D%d\n", | 216 | ACPI_WARNING((AE_INFO, "Device does not support D%d", state)); |
219 | state)); | ||
220 | return_VALUE(-ENODEV); | 217 | return_VALUE(-ENODEV); |
221 | } | 218 | } |
222 | if (device->parent && (state < device->parent->power.state)) { | 219 | if (device->parent && (state < device->parent->power.state)) { |
223 | ACPI_DEBUG_PRINT((ACPI_DB_WARN, | 220 | ACPI_WARNING((AE_INFO, |
224 | "Cannot set device to a higher-powered state than parent\n")); | 221 | "Cannot set device to a higher-powered" |
222 | " state than parent")); | ||
225 | return_VALUE(-ENODEV); | 223 | return_VALUE(-ENODEV); |
226 | } | 224 | } |
227 | 225 | ||
@@ -264,9 +262,9 @@ int acpi_bus_set_power(acpi_handle handle, int state) | |||
264 | 262 | ||
265 | end: | 263 | end: |
266 | if (result) | 264 | if (result) |
267 | ACPI_DEBUG_PRINT((ACPI_DB_WARN, | 265 | ACPI_WARNING((AE_INFO, |
268 | "Error transitioning device [%s] to D%d\n", | 266 | "Transitioning device [%s] to D%d", |
269 | device->pnp.bus_id, state)); | 267 | device->pnp.bus_id, state)); |
270 | else | 268 | else |
271 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, | 269 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, |
272 | "Device [%s] transitioned to D%d\n", | 270 | "Device [%s] transitioned to D%d\n", |
@@ -581,7 +579,7 @@ static int __init acpi_bus_init_irq(void) | |||
581 | 579 | ||
582 | status = acpi_evaluate_object(NULL, "\\_PIC", &arg_list, NULL); | 580 | status = acpi_evaluate_object(NULL, "\\_PIC", &arg_list, NULL); |
583 | if (ACPI_FAILURE(status) && (status != AE_NOT_FOUND)) { | 581 | if (ACPI_FAILURE(status) && (status != AE_NOT_FOUND)) { |
584 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Error evaluating _PIC\n")); | 582 | ACPI_EXCEPTION((AE_INFO, status, "Evaluating _PIC")); |
585 | return_VALUE(-ENODEV); | 583 | return_VALUE(-ENODEV); |
586 | } | 584 | } |
587 | 585 | ||