aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/acpi/bus.c12
-rw-r--r--drivers/acpi/hotkey.c2
-rw-r--r--drivers/acpi/pci_irq.c8
-rw-r--r--drivers/acpi/pci_link.c34
-rw-r--r--drivers/acpi/power.c6
-rw-r--r--drivers/acpi/processor_throttling.c2
-rw-r--r--drivers/acpi/thermal.c18
-rw-r--r--drivers/acpi/utilities/utmisc.c2
-rw-r--r--drivers/acpi/utils.c24
9 files changed, 54 insertions, 54 deletions
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
index f4a36d372cac..6c6286290127 100644
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -214,13 +214,13 @@ int acpi_bus_set_power(acpi_handle handle, int state)
214 } 214 }
215 } 215 }
216 if (!device->power.states[state].flags.valid) { 216 if (!device->power.states[state].flags.valid) {
217 ACPI_WARNING((AE_INFO, "Device does not support D%d", state)); 217 printk(KERN_WARNING PREFIX "Device does not support D%d\n", state);
218 return_VALUE(-ENODEV); 218 return_VALUE(-ENODEV);
219 } 219 }
220 if (device->parent && (state < device->parent->power.state)) { 220 if (device->parent && (state < device->parent->power.state)) {
221 ACPI_WARNING((AE_INFO, 221 printk(KERN_WARNING PREFIX
222 "Cannot set device to a higher-powered" 222 "Cannot set device to a higher-powered"
223 " state than parent")); 223 " state than parent\n");
224 return_VALUE(-ENODEV); 224 return_VALUE(-ENODEV);
225 } 225 }
226 226
@@ -263,9 +263,9 @@ int acpi_bus_set_power(acpi_handle handle, int state)
263 263
264 end: 264 end:
265 if (result) 265 if (result)
266 ACPI_WARNING((AE_INFO, 266 printk(KERN_WARNING PREFIX
267 "Transitioning device [%s] to D%d", 267 "Transitioning device [%s] to D%d\n",
268 device->pnp.bus_id, state)); 268 device->pnp.bus_id, state);
269 else 269 else
270 ACPI_DEBUG_PRINT((ACPI_DB_INFO, 270 ACPI_DEBUG_PRINT((ACPI_DB_INFO,
271 "Device [%s] transitioned to D%d\n", 271 "Device [%s] transitioned to D%d\n",
diff --git a/drivers/acpi/hotkey.c b/drivers/acpi/hotkey.c
index 37dcb1f7f983..f5da971759ad 100644
--- a/drivers/acpi/hotkey.c
+++ b/drivers/acpi/hotkey.c
@@ -983,7 +983,7 @@ static ssize_t hotkey_execute_aml_method(struct file *file,
983 983
984 } 984 }
985 } else { 985 } else {
986 ACPI_WARNING((AE_INFO, "Not supported")); 986 printk(KERN_WARNING "Not supported\n");
987 return_VALUE(-EINVAL); 987 return_VALUE(-EINVAL);
988 } 988 }
989 return_VALUE(count); 989 return_VALUE(count);
diff --git a/drivers/acpi/pci_irq.c b/drivers/acpi/pci_irq.c
index 4cabc51246de..9010653a3823 100644
--- a/drivers/acpi/pci_irq.c
+++ b/drivers/acpi/pci_irq.c
@@ -269,8 +269,8 @@ acpi_pci_allocate_irq(struct acpi_prt_entry *entry,
269 entry->link.index, triggering, 269 entry->link.index, triggering,
270 polarity, link); 270 polarity, link);
271 if (irq < 0) { 271 if (irq < 0) {
272 ACPI_WARNING((AE_INFO, 272 printk(KERN_WARNING PREFIX
273 "Invalid IRQ link routing entry")); 273 "Invalid IRQ link routing entry\n");
274 return_VALUE(-1); 274 return_VALUE(-1);
275 } 275 }
276 } else { 276 } else {
@@ -379,8 +379,8 @@ acpi_pci_irq_derive(struct pci_dev *dev,
379 } 379 }
380 380
381 if (irq < 0) { 381 if (irq < 0) {
382 ACPI_WARNING((AE_INFO, "Unable to derive IRQ for device %s", 382 printk(KERN_WARNING PREFIX "Unable to derive IRQ for device %s\n",
383 pci_name(dev))); 383 pci_name(dev));
384 return_VALUE(-1); 384 return_VALUE(-1);
385 } 385 }
386 386
diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c
index 415b2628fe85..6d903bfe5197 100644
--- a/drivers/acpi/pci_link.c
+++ b/drivers/acpi/pci_link.c
@@ -116,15 +116,15 @@ acpi_pci_link_check_possible(struct acpi_resource *resource, void *context)
116 { 116 {
117 struct acpi_resource_irq *p = &resource->data.irq; 117 struct acpi_resource_irq *p = &resource->data.irq;
118 if (!p || !p->interrupt_count) { 118 if (!p || !p->interrupt_count) {
119 ACPI_WARNING((AE_INFO, "Blank IRQ resource")); 119 printk(KERN_WARNING PREFIX "Blank IRQ resource\n");
120 return_ACPI_STATUS(AE_OK); 120 return_ACPI_STATUS(AE_OK);
121 } 121 }
122 for (i = 0; 122 for (i = 0;
123 (i < p->interrupt_count 123 (i < p->interrupt_count
124 && i < ACPI_PCI_LINK_MAX_POSSIBLE); i++) { 124 && i < ACPI_PCI_LINK_MAX_POSSIBLE); i++) {
125 if (!p->interrupts[i]) { 125 if (!p->interrupts[i]) {
126 ACPI_WARNING((AE_INFO, "Invalid IRQ %d", 126 printk(KERN_WARNING PREFIX "Invalid IRQ %d\n",
127 p->interrupts[i])); 127 p->interrupts[i]);
128 continue; 128 continue;
129 } 129 }
130 link->irq.possible[i] = p->interrupts[i]; 130 link->irq.possible[i] = p->interrupts[i];
@@ -140,16 +140,16 @@ acpi_pci_link_check_possible(struct acpi_resource *resource, void *context)
140 struct acpi_resource_extended_irq *p = 140 struct acpi_resource_extended_irq *p =
141 &resource->data.extended_irq; 141 &resource->data.extended_irq;
142 if (!p || !p->interrupt_count) { 142 if (!p || !p->interrupt_count) {
143 ACPI_WARNING((AE_INFO, 143 printk(KERN_WARNING PREFIX
144 "Blank EXT IRQ resource")); 144 "Blank EXT IRQ resource\n");
145 return_ACPI_STATUS(AE_OK); 145 return_ACPI_STATUS(AE_OK);
146 } 146 }
147 for (i = 0; 147 for (i = 0;
148 (i < p->interrupt_count 148 (i < p->interrupt_count
149 && i < ACPI_PCI_LINK_MAX_POSSIBLE); i++) { 149 && i < ACPI_PCI_LINK_MAX_POSSIBLE); i++) {
150 if (!p->interrupts[i]) { 150 if (!p->interrupts[i]) {
151 ACPI_WARNING((AE_INFO, "Invalid IRQ %d", 151 printk(KERN_WARNING PREFIX "Invalid IRQ %d\n",
152 p->interrupts[i])); 152 p->interrupts[i]);
153 continue; 153 continue;
154 } 154 }
155 link->irq.possible[i] = p->interrupts[i]; 155 link->irq.possible[i] = p->interrupts[i];
@@ -223,8 +223,8 @@ acpi_pci_link_check_current(struct acpi_resource *resource, void *context)
223 * extended IRQ descriptors must 223 * extended IRQ descriptors must
224 * return at least 1 IRQ 224 * return at least 1 IRQ
225 */ 225 */
226 ACPI_WARNING((AE_INFO, 226 printk(KERN_WARNING PREFIX
227 "Blank EXT IRQ resource")); 227 "Blank EXT IRQ resource\n");
228 return_ACPI_STATUS(AE_OK); 228 return_ACPI_STATUS(AE_OK);
229 } 229 }
230 *irq = p->interrupts[0]; 230 *irq = p->interrupts[0];
@@ -381,10 +381,10 @@ static int acpi_pci_link_set(struct acpi_pci_link *link, int irq)
381 goto end; 381 goto end;
382 } 382 }
383 if (!link->device->status.enabled) { 383 if (!link->device->status.enabled) {
384 ACPI_WARNING((AE_INFO, 384 printk(KERN_WARNING PREFIX
385 "%s [%s] disabled and referenced, BIOS bug", 385 "%s [%s] disabled and referenced, BIOS bug\n",
386 acpi_device_name(link->device), 386 acpi_device_name(link->device),
387 acpi_device_bid(link->device))); 387 acpi_device_bid(link->device));
388 } 388 }
389 389
390 /* Query _CRS, set link->irq.active */ 390 /* Query _CRS, set link->irq.active */
@@ -402,10 +402,10 @@ static int acpi_pci_link_set(struct acpi_pci_link *link, int irq)
402 * policy: when _CRS doesn't return what we just _SRS 402 * policy: when _CRS doesn't return what we just _SRS
403 * assume _SRS worked and override _CRS value. 403 * assume _SRS worked and override _CRS value.
404 */ 404 */
405 ACPI_WARNING((AE_INFO, 405 printk(KERN_WARNING PREFIX
406 "%s [%s] BIOS reported IRQ %d, using IRQ %d", 406 "%s [%s] BIOS reported IRQ %d, using IRQ %d\n",
407 acpi_device_name(link->device), 407 acpi_device_name(link->device),
408 acpi_device_bid(link->device), link->irq.active, irq)); 408 acpi_device_bid(link->device), link->irq.active, irq);
409 link->irq.active = irq; 409 link->irq.active = irq;
410 } 410 }
411 411
@@ -555,8 +555,8 @@ static int acpi_pci_link_allocate(struct acpi_pci_link *link)
555 */ 555 */
556 if (i == link->irq.possible_count) { 556 if (i == link->irq.possible_count) {
557 if (acpi_strict) 557 if (acpi_strict)
558 ACPI_WARNING((AE_INFO, "_CRS %d not found" 558 printk(KERN_WARNING PREFIX "_CRS %d not found"
559 " in _PRS", link->irq.active)); 559 " in _PRS\n", link->irq.active);
560 link->irq.active = 0; 560 link->irq.active = 0;
561 } 561 }
562 562
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c
index 5712803ddc78..43688c8280e5 100644
--- a/drivers/acpi/power.c
+++ b/drivers/acpi/power.c
@@ -105,7 +105,7 @@ acpi_power_get_context(acpi_handle handle,
105 105
106 result = acpi_bus_get_device(handle, &device); 106 result = acpi_bus_get_device(handle, &device);
107 if (result) { 107 if (result) {
108 ACPI_WARNING((AE_INFO, "Getting context [%p]", handle)); 108 printk(KERN_WARNING PREFIX "Getting context [%p]\n", handle);
109 return_VALUE(result); 109 return_VALUE(result);
110 } 110 }
111 111
@@ -441,8 +441,8 @@ int acpi_power_transition(struct acpi_device *device, int state)
441 device->power.state = state; 441 device->power.state = state;
442 end: 442 end:
443 if (result) 443 if (result)
444 ACPI_WARNING((AE_INFO, "Transitioning device [%s] to D%d", 444 printk(KERN_WARNING PREFIX "Transitioning device [%s] to D%d\n",
445 device->pnp.bus_id, state)); 445 device->pnp.bus_id, state);
446 446
447 return_VALUE(result); 447 return_VALUE(result);
448} 448}
diff --git a/drivers/acpi/processor_throttling.c b/drivers/acpi/processor_throttling.c
index 97856ad28c18..2de40bd5fdff 100644
--- a/drivers/acpi/processor_throttling.c
+++ b/drivers/acpi/processor_throttling.c
@@ -196,7 +196,7 @@ int acpi_processor_get_throttling_info(struct acpi_processor *pr)
196 } 196 }
197 /* TBD: Support duty_cycle values that span bit 4. */ 197 /* TBD: Support duty_cycle values that span bit 4. */
198 else if ((pr->throttling.duty_offset + pr->throttling.duty_width) > 4) { 198 else if ((pr->throttling.duty_offset + pr->throttling.duty_width) > 4) {
199 ACPI_WARNING((AE_INFO, "duty_cycle spans bit 4")); 199 printk(KERN_WARNING PREFIX "duty_cycle spans bit 4\n");
200 return_VALUE(0); 200 return_VALUE(0);
201 } 201 }
202 202
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
index 44fffe16767e..6e9157a1d92d 100644
--- a/drivers/acpi/thermal.c
+++ b/drivers/acpi/thermal.c
@@ -384,7 +384,7 @@ static int acpi_thermal_get_trip_points(struct acpi_thermal *tz)
384 tz->trips.passive.flags.valid = 0; 384 tz->trips.passive.flags.valid = 0;
385 385
386 if (!tz->trips.passive.flags.valid) 386 if (!tz->trips.passive.flags.valid)
387 ACPI_WARNING((AE_INFO, "Invalid passive threshold")); 387 printk(KERN_WARNING PREFIX "Invalid passive threshold\n");
388 else 388 else
389 ACPI_DEBUG_PRINT((ACPI_DB_INFO, 389 ACPI_DEBUG_PRINT((ACPI_DB_INFO,
390 "Found passive threshold [%lu]\n", 390 "Found passive threshold [%lu]\n",
@@ -469,7 +469,7 @@ static int acpi_thermal_critical(struct acpi_thermal *tz)
469 return_VALUE(-EINVAL); 469 return_VALUE(-EINVAL);
470 470
471 if (tz->temperature >= tz->trips.critical.temperature) { 471 if (tz->temperature >= tz->trips.critical.temperature) {
472 ACPI_WARNING((AE_INFO, "Critical trip point")); 472 printk(KERN_WARNING PREFIX "Critical trip point\n");
473 tz->trips.critical.flags.enabled = 1; 473 tz->trips.critical.flags.enabled = 1;
474 } else if (tz->trips.critical.flags.enabled) 474 } else if (tz->trips.critical.flags.enabled)
475 tz->trips.critical.flags.enabled = 0; 475 tz->trips.critical.flags.enabled = 0;
@@ -500,7 +500,7 @@ static int acpi_thermal_hot(struct acpi_thermal *tz)
500 return_VALUE(-EINVAL); 500 return_VALUE(-EINVAL);
501 501
502 if (tz->temperature >= tz->trips.hot.temperature) { 502 if (tz->temperature >= tz->trips.hot.temperature) {
503 ACPI_WARNING((AE_INFO, "Hot trip point")); 503 printk(KERN_WARNING PREFIX "Hot trip point\n");
504 tz->trips.hot.flags.enabled = 1; 504 tz->trips.hot.flags.enabled = 1;
505 } else if (tz->trips.hot.flags.enabled) 505 } else if (tz->trips.hot.flags.enabled)
506 tz->trips.hot.flags.enabled = 0; 506 tz->trips.hot.flags.enabled = 0;
@@ -640,10 +640,10 @@ static void acpi_thermal_active(struct acpi_thermal *tz)
640 handles[j], 640 handles[j],
641 ACPI_STATE_D0); 641 ACPI_STATE_D0);
642 if (result) { 642 if (result) {
643 ACPI_WARNING((AE_INFO, 643 printk(KERN_WARNING PREFIX
644 "Unable to turn cooling device [%p] 'on'", 644 "Unable to turn cooling device [%p] 'on'\n",
645 active->devices. 645 active->devices.
646 handles[j])); 646 handles[j]);
647 continue; 647 continue;
648 } 648 }
649 active->flags.enabled = 1; 649 active->flags.enabled = 1;
@@ -665,9 +665,9 @@ static void acpi_thermal_active(struct acpi_thermal *tz)
665 result = acpi_bus_set_power(active->devices.handles[j], 665 result = acpi_bus_set_power(active->devices.handles[j],
666 ACPI_STATE_D3); 666 ACPI_STATE_D3);
667 if (result) { 667 if (result) {
668 ACPI_WARNING((AE_INFO, 668 printk(KERN_WARNING PREFIX
669 "Unable to turn cooling device [%p] 'off'", 669 "Unable to turn cooling device [%p] 'off'\n",
670 active->devices.handles[j])); 670 active->devices.handles[j]);
671 continue; 671 continue;
672 } 672 }
673 active->flags.enabled = 0; 673 active->flags.enabled = 0;
diff --git a/drivers/acpi/utilities/utmisc.c b/drivers/acpi/utilities/utmisc.c
index 58daa3798bf2..dcb497537c14 100644
--- a/drivers/acpi/utilities/utmisc.c
+++ b/drivers/acpi/utilities/utmisc.c
@@ -978,7 +978,7 @@ acpi_ut_warning(char *module_name, u32 line_number, char *format, ...)
978 acpi_os_vprintf(format, args); 978 acpi_os_vprintf(format, args);
979 acpi_os_printf(" [%X]\n", ACPI_CA_VERSION); 979 acpi_os_printf(" [%X]\n", ACPI_CA_VERSION);
980} 980}
981EXPORT_SYMBOL(acpi_ut_warning); 981
982void ACPI_INTERNAL_VAR_XFACE 982void ACPI_INTERNAL_VAR_XFACE
983acpi_ut_info(char *module_name, u32 line_number, char *format, ...) 983acpi_ut_info(char *module_name, u32 line_number, char *format, ...)
984{ 984{
diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c
index ce093d4516ba..040ff473d1f2 100644
--- a/drivers/acpi/utils.c
+++ b/drivers/acpi/utils.c
@@ -62,25 +62,25 @@ acpi_extract_package(union acpi_object *package,
62 62
63 if (!package || (package->type != ACPI_TYPE_PACKAGE) 63 if (!package || (package->type != ACPI_TYPE_PACKAGE)
64 || (package->package.count < 1)) { 64 || (package->package.count < 1)) {
65 ACPI_WARNING((AE_INFO, "Invalid package argument")); 65 printk(KERN_WARNING PREFIX "Invalid package argument\n");
66 return_ACPI_STATUS(AE_BAD_PARAMETER); 66 return_ACPI_STATUS(AE_BAD_PARAMETER);
67 } 67 }
68 68
69 if (!format || !format->pointer || (format->length < 1)) { 69 if (!format || !format->pointer || (format->length < 1)) {
70 ACPI_WARNING((AE_INFO, "Invalid format argument")); 70 printk(KERN_WARNING PREFIX "Invalid format argument\n");
71 return_ACPI_STATUS(AE_BAD_PARAMETER); 71 return_ACPI_STATUS(AE_BAD_PARAMETER);
72 } 72 }
73 73
74 if (!buffer) { 74 if (!buffer) {
75 ACPI_WARNING((AE_INFO, "Invalid buffer argument")); 75 printk(KERN_WARNING PREFIX "Invalid buffer argument\n");
76 return_ACPI_STATUS(AE_BAD_PARAMETER); 76 return_ACPI_STATUS(AE_BAD_PARAMETER);
77 } 77 }
78 78
79 format_count = (format->length / sizeof(char)) - 1; 79 format_count = (format->length / sizeof(char)) - 1;
80 if (format_count > package->package.count) { 80 if (format_count > package->package.count) {
81 ACPI_WARNING((AE_INFO, "Format specifies more objects [%d]" 81 printk(KERN_WARNING PREFIX "Format specifies more objects [%d]"
82 " than exist in package [%d].", 82 " than exist in package [%d].\n",
83 format_count, package->package.count)); 83 format_count, package->package.count);
84 return_ACPI_STATUS(AE_BAD_DATA); 84 return_ACPI_STATUS(AE_BAD_DATA);
85 } 85 }
86 86
@@ -112,10 +112,10 @@ acpi_extract_package(union acpi_object *package,
112 tail_offset += sizeof(char *); 112 tail_offset += sizeof(char *);
113 break; 113 break;
114 default: 114 default:
115 ACPI_WARNING((AE_INFO, "Invalid package element" 115 printk(KERN_WARNING PREFIX "Invalid package element"
116 " [%d]: got number, expecing" 116 " [%d]: got number, expecing"
117 " [%c]", 117 " [%c]\n",
118 i, format_string[i])); 118 i, format_string[i]);
119 return_ACPI_STATUS(AE_BAD_DATA); 119 return_ACPI_STATUS(AE_BAD_DATA);
120 break; 120 break;
121 } 121 }
@@ -138,10 +138,10 @@ acpi_extract_package(union acpi_object *package,
138 tail_offset += sizeof(u8 *); 138 tail_offset += sizeof(u8 *);
139 break; 139 break;
140 default: 140 default:
141 ACPI_WARNING((AE_INFO, "Invalid package element" 141 printk(KERN_WARNING PREFIX "Invalid package element"
142 " [%d] got string/buffer," 142 " [%d] got string/buffer,"
143 " expecing [%c]", 143 " expecing [%c]\n",
144 i, format_string[i])); 144 i, format_string[i]);
145 return_ACPI_STATUS(AE_BAD_DATA); 145 return_ACPI_STATUS(AE_BAD_DATA);
146 break; 146 break;
147 } 147 }