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/pci_bind.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/pci_bind.c')
-rw-r--r-- | drivers/acpi/pci_bind.c | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/drivers/acpi/pci_bind.c b/drivers/acpi/pci_bind.c index 2a718df769b5..6d3e818e327a 100644 --- a/drivers/acpi/pci_bind.c +++ b/drivers/acpi/pci_bind.c | |||
@@ -75,17 +75,17 @@ acpi_status acpi_get_pci_id(acpi_handle handle, struct acpi_pci_id *id) | |||
75 | 75 | ||
76 | result = acpi_bus_get_device(handle, &device); | 76 | result = acpi_bus_get_device(handle, &device); |
77 | if (result) { | 77 | if (result) { |
78 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 78 | ACPI_ERROR((AE_INFO, |
79 | "Invalid ACPI Bus context for device %s\n", | 79 | "Invalid ACPI Bus context for device %s", |
80 | acpi_device_bid(device))); | 80 | acpi_device_bid(device))); |
81 | return_ACPI_STATUS(AE_NOT_EXIST); | 81 | return_ACPI_STATUS(AE_NOT_EXIST); |
82 | } | 82 | } |
83 | 83 | ||
84 | status = acpi_get_data(handle, acpi_pci_data_handler, (void **)&data); | 84 | status = acpi_get_data(handle, acpi_pci_data_handler, (void **)&data); |
85 | if (ACPI_FAILURE(status) || !data) { | 85 | if (ACPI_FAILURE(status) || !data) { |
86 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 86 | ACPI_EXCEPTION((AE_INFO, status, |
87 | "Invalid ACPI-PCI context for device %s\n", | 87 | "Invalid ACPI-PCI context for device %s", |
88 | acpi_device_bid(device))); | 88 | acpi_device_bid(device))); |
89 | return_ACPI_STATUS(status); | 89 | return_ACPI_STATUS(status); |
90 | } | 90 | } |
91 | 91 | ||
@@ -151,9 +151,9 @@ int acpi_pci_bind(struct acpi_device *device) | |||
151 | status = acpi_get_data(device->parent->handle, acpi_pci_data_handler, | 151 | status = acpi_get_data(device->parent->handle, acpi_pci_data_handler, |
152 | (void **)&pdata); | 152 | (void **)&pdata); |
153 | if (ACPI_FAILURE(status) || !pdata || !pdata->bus) { | 153 | if (ACPI_FAILURE(status) || !pdata || !pdata->bus) { |
154 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 154 | ACPI_EXCEPTION((AE_INFO, status, |
155 | "Invalid ACPI-PCI context for parent device %s\n", | 155 | "Invalid ACPI-PCI context for parent device %s", |
156 | acpi_device_bid(device->parent))); | 156 | acpi_device_bid(device->parent))); |
157 | result = -ENODEV; | 157 | result = -ENODEV; |
158 | goto end; | 158 | goto end; |
159 | } | 159 | } |
@@ -206,10 +206,10 @@ int acpi_pci_bind(struct acpi_device *device) | |||
206 | goto end; | 206 | goto end; |
207 | } | 207 | } |
208 | if (!data->dev->bus) { | 208 | if (!data->dev->bus) { |
209 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 209 | ACPI_ERROR((AE_INFO, |
210 | "Device %02x:%02x:%02x.%02x has invalid 'bus' field\n", | 210 | "Device %02x:%02x:%02x.%02x has invalid 'bus' field", |
211 | data->id.segment, data->id.bus, | 211 | data->id.segment, data->id.bus, |
212 | data->id.device, data->id.function)); | 212 | data->id.device, data->id.function)); |
213 | result = -ENODEV; | 213 | result = -ENODEV; |
214 | goto end; | 214 | goto end; |
215 | } | 215 | } |
@@ -237,9 +237,9 @@ int acpi_pci_bind(struct acpi_device *device) | |||
237 | */ | 237 | */ |
238 | status = acpi_attach_data(device->handle, acpi_pci_data_handler, data); | 238 | status = acpi_attach_data(device->handle, acpi_pci_data_handler, data); |
239 | if (ACPI_FAILURE(status)) { | 239 | if (ACPI_FAILURE(status)) { |
240 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 240 | ACPI_EXCEPTION((AE_INFO, status, |
241 | "Unable to attach ACPI-PCI context to device %s\n", | 241 | "Unable to attach ACPI-PCI context to device %s", |
242 | acpi_device_bid(device))); | 242 | acpi_device_bid(device))); |
243 | result = -ENODEV; | 243 | result = -ENODEV; |
244 | goto end; | 244 | goto end; |
245 | } | 245 | } |
@@ -301,18 +301,18 @@ int acpi_pci_unbind(struct acpi_device *device) | |||
301 | acpi_get_data(device->handle, acpi_pci_data_handler, | 301 | acpi_get_data(device->handle, acpi_pci_data_handler, |
302 | (void **)&data); | 302 | (void **)&data); |
303 | if (ACPI_FAILURE(status)) { | 303 | if (ACPI_FAILURE(status)) { |
304 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 304 | ACPI_EXCEPTION((AE_INFO, status, |
305 | "Unable to get data from device %s\n", | 305 | "Unable to get data from device %s", |
306 | acpi_device_bid(device))); | 306 | acpi_device_bid(device))); |
307 | result = -ENODEV; | 307 | result = -ENODEV; |
308 | goto end; | 308 | goto end; |
309 | } | 309 | } |
310 | 310 | ||
311 | status = acpi_detach_data(device->handle, acpi_pci_data_handler); | 311 | status = acpi_detach_data(device->handle, acpi_pci_data_handler); |
312 | if (ACPI_FAILURE(status)) { | 312 | if (ACPI_FAILURE(status)) { |
313 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 313 | ACPI_EXCEPTION((AE_INFO, status, |
314 | "Unable to detach data from device %s\n", | 314 | "Unable to detach data from device %s", |
315 | acpi_device_bid(device))); | 315 | acpi_device_bid(device))); |
316 | result = -ENODEV; | 316 | result = -ENODEV; |
317 | goto end; | 317 | goto end; |
318 | } | 318 | } |
@@ -369,9 +369,9 @@ acpi_pci_bind_root(struct acpi_device *device, | |||
369 | 369 | ||
370 | status = acpi_attach_data(device->handle, acpi_pci_data_handler, data); | 370 | status = acpi_attach_data(device->handle, acpi_pci_data_handler, data); |
371 | if (ACPI_FAILURE(status)) { | 371 | if (ACPI_FAILURE(status)) { |
372 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 372 | ACPI_EXCEPTION((AE_INFO, status, |
373 | "Unable to attach ACPI-PCI context to device %s\n", | 373 | "Unable to attach ACPI-PCI context to device %s", |
374 | pathname)); | 374 | pathname)); |
375 | result = -ENODEV; | 375 | result = -ENODEV; |
376 | goto end; | 376 | goto end; |
377 | } | 377 | } |