Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: un-export ACPI_ERROR() -- use printk(KERN_ERR...)

Signed-off-by: Len Brown <len.brown@intel.com>

Len Brown 6468463a cece9296

+101 -102
+9 -9
drivers/acpi/acpi_memhotplug.c
··· 187 187 /* Get the range from the _CRS */ 188 188 result = acpi_memory_get_device_resources(mem_device); 189 189 if (result) { 190 - ACPI_ERROR((AE_INFO, "get_device_resources failed")); 190 + printk(KERN_ERR PREFIX "get_device_resources failed\n"); 191 191 mem_device->state = MEMORY_INVALID_STATE; 192 192 return result; 193 193 } ··· 198 198 */ 199 199 result = add_memory(mem_device->start_addr, mem_device->length); 200 200 if (result) { 201 - ACPI_ERROR((AE_INFO, "add_memory failed")); 201 + printk(KERN_ERR PREFIX "add_memory failed\n"); 202 202 mem_device->state = MEMORY_INVALID_STATE; 203 203 return result; 204 204 } ··· 286 286 ACPI_DEBUG_PRINT((ACPI_DB_INFO, 287 287 "\nReceived DEVICE CHECK notification for device\n")); 288 288 if (acpi_memory_get_device(handle, &mem_device)) { 289 - ACPI_ERROR((AE_INFO, "Cannot find driver data")); 289 + printk(KERN_ERR PREFIX "Cannot find driver data\n"); 290 290 return_VOID; 291 291 } 292 292 293 293 if (!acpi_memory_check_device(mem_device)) { 294 294 if (acpi_memory_enable_device(mem_device)) 295 - ACPI_ERROR((AE_INFO, 296 - "Cannot enable memory device")); 295 + printk(KERN_ERR PREFIX 296 + "Cannot enable memory device\n"); 297 297 } 298 298 break; 299 299 case ACPI_NOTIFY_EJECT_REQUEST: ··· 301 301 "\nReceived EJECT REQUEST notification for device\n")); 302 302 303 303 if (acpi_bus_get_device(handle, &device)) { 304 - ACPI_ERROR((AE_INFO, "Device doesn't exist")); 304 + printk(KERN_ERR PREFIX "Device doesn't exist\n"); 305 305 break; 306 306 } 307 307 mem_device = acpi_driver_data(device); 308 308 if (!mem_device) { 309 - ACPI_ERROR((AE_INFO, "Driver Data is NULL")); 309 + printk(KERN_ERR PREFIX "Driver Data is NULL\n"); 310 310 break; 311 311 } 312 312 ··· 317 317 * with generic sysfs driver 318 318 */ 319 319 if (acpi_memory_disable_device(mem_device)) 320 - ACPI_ERROR((AE_INFO, 321 - "Disable memory device\n")); 320 + printk(KERN_ERR PREFIX 321 + "Disable memory device\n"); 322 322 /* 323 323 * TBD: Invoke acpi_bus_remove to cleanup data structures 324 324 */
+2 -2
drivers/acpi/button.c
··· 345 345 sprintf(acpi_device_class(device), "%s/%s", 346 346 ACPI_BUTTON_CLASS, ACPI_BUTTON_SUBCLASS_LID); 347 347 } else { 348 - ACPI_ERROR((AE_INFO, "Unsupported hid [%s]", 349 - acpi_device_hid(device))); 348 + printk(KERN_ERR PREFIX "Unsupported hid [%s]\n", 349 + acpi_device_hid(device)); 350 350 result = -ENODEV; 351 351 goto end; 352 352 }
+1 -1
drivers/acpi/container.c
··· 94 94 ACPI_FUNCTION_TRACE("acpi_container_add"); 95 95 96 96 if (!device) { 97 - ACPI_ERROR((AE_INFO, "device is NULL")); 97 + printk(KERN_ERR PREFIX "device is NULL\n"); 98 98 return_VALUE(-EINVAL); 99 99 } 100 100
+2 -2
drivers/acpi/ec.c
··· 1107 1107 acpi_evaluate_integer(ec->common.handle, "_GPE", NULL, 1108 1108 &ec->common.gpe_bit); 1109 1109 if (ACPI_FAILURE(status)) { 1110 - ACPI_ERROR((AE_INFO, "Obtaining GPE bit assignment")); 1110 + printk(KERN_ERR PREFIX "Obtaining GPE bit assignment\n"); 1111 1111 result = -ENODEV; 1112 1112 goto end; 1113 1113 } ··· 1201 1201 acpi_ec_io_ports, ec); 1202 1202 if (ACPI_FAILURE(status) 1203 1203 || ec->common.command_addr.register_bit_width == 0) { 1204 - ACPI_ERROR((AE_INFO, "Error getting I/O port addresses")); 1204 + printk(KERN_ERR PREFIX "Error getting I/O port addresses\n"); 1205 1205 return_VALUE(-ENODEV); 1206 1206 } 1207 1207
+1 -1
drivers/acpi/fan.c
··· 203 203 204 204 result = acpi_bus_get_power(fan->handle, &state); 205 205 if (result) { 206 - ACPI_ERROR((AE_INFO, "Reading power state")); 206 + printk(KERN_ERR PREFIX "Reading power state\n"); 207 207 goto end; 208 208 } 209 209
+8 -8
drivers/acpi/hotkey.c
··· 768 768 769 769 if (copy_from_user(config_record, buffer, count)) { 770 770 kfree(config_record); 771 - ACPI_ERROR((AE_INFO, "Invalid data")); 771 + printk(KERN_ERR PREFIX "Invalid data\n"); 772 772 return_VALUE(-EINVAL); 773 773 } 774 774 config_record[count] = 0; ··· 789 789 kfree(bus_method); 790 790 kfree(action_handle); 791 791 kfree(method); 792 - ACPI_ERROR((AE_INFO, "Invalid data format ret=%d", ret)); 792 + printk(KERN_ERR PREFIX "Invalid data format ret=%d\n", ret); 793 793 return_VALUE(-EINVAL); 794 794 } 795 795 ··· 802 802 tmp = get_hotkey_by_event(&global_hotkey_list, 803 803 internal_event_num); 804 804 if (!tmp) 805 - ACPI_ERROR((AE_INFO, "Invalid key")); 805 + printk(KERN_ERR PREFIX "Invalid key\n"); 806 806 else 807 807 memcpy(key, tmp, sizeof(union acpi_hotkey)); 808 808 goto cont_cmd; ··· 824 824 else 825 825 free_poll_hotkey_buffer(key); 826 826 kfree(key); 827 - ACPI_ERROR((AE_INFO, "Invalid hotkey")); 827 + printk(KERN_ERR PREFIX "Invalid hotkey\n"); 828 828 return_VALUE(-EINVAL); 829 829 } 830 830 ··· 858 858 else 859 859 free_poll_hotkey_buffer(key); 860 860 kfree(key); 861 - ACPI_ERROR((AE_INFO, "invalid key")); 861 + printk(KERN_ERR PREFIX "invalid key\n"); 862 862 return_VALUE(-EINVAL); 863 863 } 864 864 ··· 903 903 val->integer.value = out_obj.integer.value; 904 904 val->type = out_obj.type; 905 905 } else 906 - ACPI_ERROR((AE_INFO, "null val pointer")); 906 + printk(KERN_ERR PREFIX "null val pointer\n"); 907 907 return_VALUE((status == AE_OK) 908 908 && (out_obj.type == ACPI_TYPE_INTEGER)); 909 909 } ··· 950 950 951 951 if (copy_from_user(arg, buffer, count)) { 952 952 kfree(arg); 953 - ACPI_ERROR((AE_INFO, "Invalid argument 2")); 953 + printk(KERN_ERR PREFIX "Invalid argument 2\n"); 954 954 return_VALUE(-EINVAL); 955 955 } 956 956 957 957 if (sscanf(arg, "%d:%d:%d:%d", &event, &method_type, &type, &value) != 958 958 4) { 959 959 kfree(arg); 960 - ACPI_ERROR((AE_INFO, "Invalid argument 3")); 960 + printk(KERN_ERR PREFIX "Invalid argument 3\n"); 961 961 return_VALUE(-EINVAL); 962 962 } 963 963 kfree(arg);
+1 -1
drivers/acpi/osl.c
··· 591 591 592 592 dpc = (struct acpi_os_dpc *)context; 593 593 if (!dpc) { 594 - ACPI_ERROR((AE_INFO, "Invalid (NULL) context")); 594 + printk(KERN_ERR PREFIX "Invalid (NULL) context\n"); 595 595 return_VOID; 596 596 } 597 597
+6 -6
drivers/acpi/pci_bind.c
··· 75 75 76 76 result = acpi_bus_get_device(handle, &device); 77 77 if (result) { 78 - ACPI_ERROR((AE_INFO, 79 - "Invalid ACPI Bus context for device %s", 80 - acpi_device_bid(device))); 78 + printk(KERN_ERR PREFIX 79 + "Invalid ACPI Bus context for device %s\n", 80 + acpi_device_bid(device)); 81 81 return_ACPI_STATUS(AE_NOT_EXIST); 82 82 } 83 83 ··· 206 206 goto end; 207 207 } 208 208 if (!data->dev->bus) { 209 - ACPI_ERROR((AE_INFO, 210 - "Device %02x:%02x:%02x.%02x has invalid 'bus' field", 209 + printk(KERN_ERR PREFIX 210 + "Device %02x:%02x:%02x.%02x has invalid 'bus' field\n", 211 211 data->id.segment, data->id.bus, 212 - data->id.device, data->id.function)); 212 + data->id.device, data->id.function); 213 213 result = -ENODEV; 214 214 goto end; 215 215 }
+1 -1
drivers/acpi/pci_irq.c
··· 420 420 pin--; 421 421 422 422 if (!dev->bus) { 423 - ACPI_ERROR((AE_INFO, "Invalid (NULL) 'bus' field")); 423 + printk(KERN_ERR PREFIX "Invalid (NULL) 'bus' field\n"); 424 424 return_VALUE(-ENODEV); 425 425 } 426 426
+18 -18
drivers/acpi/pci_link.c
··· 161 161 break; 162 162 } 163 163 default: 164 - ACPI_ERROR((AE_INFO, "Resource is not an IRQ entry\n")); 164 + printk(KERN_ERR PREFIX "Resource is not an IRQ entry\n"); 165 165 return_ACPI_STATUS(AE_OK); 166 166 } 167 167 ··· 232 232 } 233 233 break; 234 234 default: 235 - ACPI_ERROR((AE_INFO, "Resource %d isn't an IRQ", resource->type)); 235 + printk(KERN_ERR PREFIX "Resource %d isn't an IRQ\n", resource->type); 236 236 case ACPI_RESOURCE_TYPE_END_TAG: 237 237 return_ACPI_STATUS(AE_OK); 238 238 } ··· 264 264 /* Query _STA, set link->device->status */ 265 265 result = acpi_bus_get_status(link->device); 266 266 if (result) { 267 - ACPI_ERROR((AE_INFO, "Unable to read status")); 267 + printk(KERN_ERR PREFIX "Unable to read status\n"); 268 268 goto end; 269 269 } 270 270 ··· 287 287 } 288 288 289 289 if (acpi_strict && !irq) { 290 - ACPI_ERROR((AE_INFO, "_CRS returned 0")); 290 + printk(KERN_ERR PREFIX "_CRS returned 0\n"); 291 291 result = -ENODEV; 292 292 } 293 293 ··· 357 357 /* ignore resource_source, it's optional */ 358 358 break; 359 359 default: 360 - ACPI_ERROR((AE_INFO, "Invalid Resource_type %d\n", link->irq.resource_type)); 360 + printk(KERN_ERR PREFIX "Invalid Resource_type %d\n", link->irq.resource_type); 361 361 result = -EINVAL; 362 362 goto end; 363 363 ··· 377 377 /* Query _STA, set device->status */ 378 378 result = acpi_bus_get_status(link->device); 379 379 if (result) { 380 - ACPI_ERROR((AE_INFO, "Unable to read status")); 380 + printk(KERN_ERR PREFIX "Unable to read status\n"); 381 381 goto end; 382 382 } 383 383 if (!link->device->status.enabled) { ··· 496 496 497 497 link = list_entry(node, struct acpi_pci_link, node); 498 498 if (!link) { 499 - ACPI_ERROR((AE_INFO, "Invalid link context")); 499 + printk(KERN_ERR PREFIX "Invalid link context\n"); 500 500 continue; 501 501 } 502 502 ··· 583 583 584 584 /* Attempt to enable the link device at this IRQ. */ 585 585 if (acpi_pci_link_set(link, irq)) { 586 - ACPI_ERROR((AE_INFO, "Unable to set IRQ for %s [%s]. " 587 - "Try pci=noacpi or acpi=off", 586 + printk(KERN_ERR PREFIX "Unable to set IRQ for %s [%s]. " 587 + "Try pci=noacpi or acpi=off\n", 588 588 acpi_device_name(link->device), 589 - acpi_device_bid(link->device))); 589 + acpi_device_bid(link->device)); 590 590 return_VALUE(-ENODEV); 591 591 } else { 592 592 acpi_irq_penalty[link->irq.active] += PIRQ_PENALTY_PCI_USING; ··· 619 619 620 620 result = acpi_bus_get_device(handle, &device); 621 621 if (result) { 622 - ACPI_ERROR((AE_INFO, "Invalid link device")); 622 + printk(KERN_ERR PREFIX "Invalid link device\n"); 623 623 return_VALUE(-1); 624 624 } 625 625 626 626 link = (struct acpi_pci_link *)acpi_driver_data(device); 627 627 if (!link) { 628 - ACPI_ERROR((AE_INFO, "Invalid link context")); 628 + printk(KERN_ERR PREFIX "Invalid link context\n"); 629 629 return_VALUE(-1); 630 630 } 631 631 632 632 /* TBD: Support multiple index (IRQ) entries per Link Device */ 633 633 if (index) { 634 - ACPI_ERROR((AE_INFO, "Invalid index %d", index)); 634 + printk(KERN_ERR PREFIX "Invalid index %d\n", index); 635 635 return_VALUE(-1); 636 636 } 637 637 ··· 643 643 644 644 if (!link->irq.active) { 645 645 mutex_unlock(&acpi_link_lock); 646 - ACPI_ERROR((AE_INFO, "Link active IRQ is 0!")); 646 + printk(KERN_ERR PREFIX "Link active IRQ is 0!\n"); 647 647 return_VALUE(-1); 648 648 } 649 649 link->refcnt++; ··· 675 675 676 676 result = acpi_bus_get_device(handle, &device); 677 677 if (result) { 678 - ACPI_ERROR((AE_INFO, "Invalid link device")); 678 + printk(KERN_ERR PREFIX "Invalid link device\n"); 679 679 return_VALUE(-1); 680 680 } 681 681 682 682 link = (struct acpi_pci_link *)acpi_driver_data(device); 683 683 if (!link) { 684 - ACPI_ERROR((AE_INFO, "Invalid link context")); 684 + printk(KERN_ERR PREFIX "Invalid link context\n"); 685 685 return_VALUE(-1); 686 686 } 687 687 688 688 mutex_lock(&acpi_link_lock); 689 689 if (!link->irq.initialized) { 690 690 mutex_unlock(&acpi_link_lock); 691 - ACPI_ERROR((AE_INFO, "Link isn't initialized")); 691 + printk(KERN_ERR PREFIX "Link isn't initialized\n"); 692 692 return_VALUE(-1); 693 693 } 694 694 #ifdef FUTURE_USE ··· 813 813 list_for_each(node, &acpi_link.entries) { 814 814 link = list_entry(node, struct acpi_pci_link, node); 815 815 if (!link) { 816 - ACPI_ERROR((AE_INFO, "Invalid link context")); 816 + printk(KERN_ERR PREFIX "Invalid link context\n"); 817 817 continue; 818 818 } 819 819 acpi_pci_link_resume(link);
+5 -5
drivers/acpi/pci_root.c
··· 231 231 int bus = 0; 232 232 acpi_status status; 233 233 234 - ACPI_ERROR((AE_INFO, 234 + printk(KERN_ERR PREFIX 235 235 "Wrong _BBN value, reboot" 236 - " and use option 'pci=noacpi'")); 236 + " and use option 'pci=noacpi'\n"); 237 237 238 238 status = try_get_root_bridge_busnr(root->handle, &bus); 239 239 if (ACPI_FAILURE(status)) ··· 274 274 */ 275 275 root->bus = pci_acpi_scan_root(device, root->id.segment, root->id.bus); 276 276 if (!root->bus) { 277 - ACPI_ERROR((AE_INFO, 278 - "Bus %04x:%02x not present in PCI namespace", 279 - root->id.segment, root->id.bus)); 277 + printk(KERN_ERR PREFIX 278 + "Bus %04x:%02x not present in PCI namespace\n", 279 + root->id.segment, root->id.bus); 280 280 result = -ENODEV; 281 281 goto end; 282 282 }
+4 -4
drivers/acpi/power.c
··· 291 291 for (i = 0; i < dev->wakeup.resources.count; i++) { 292 292 ret = acpi_power_on(dev->wakeup.resources.handles[i]); 293 293 if (ret) { 294 - ACPI_ERROR((AE_INFO, "Transition power state")); 294 + printk(KERN_ERR PREFIX "Transition power state\n"); 295 295 dev->wakeup.flags.valid = 0; 296 296 return_VALUE(-1); 297 297 } ··· 300 300 /* Execute PSW */ 301 301 status = acpi_evaluate_object(dev->handle, "_PSW", &arg_list, NULL); 302 302 if (ACPI_FAILURE(status) && (status != AE_NOT_FOUND)) { 303 - ACPI_ERROR((AE_INFO, "Evaluate _PSW")); 303 + printk(KERN_ERR PREFIX "Evaluate _PSW\n"); 304 304 dev->wakeup.flags.valid = 0; 305 305 ret = -1; 306 306 } ··· 330 330 /* Execute PSW */ 331 331 status = acpi_evaluate_object(dev->handle, "_PSW", &arg_list, NULL); 332 332 if (ACPI_FAILURE(status) && (status != AE_NOT_FOUND)) { 333 - ACPI_ERROR((AE_INFO, "Evaluate _PSW")); 333 + printk(KERN_ERR PREFIX "Evaluate _PSW\n"); 334 334 dev->wakeup.flags.valid = 0; 335 335 return_VALUE(-1); 336 336 } ··· 339 339 for (i = 0; i < dev->wakeup.resources.count; i++) { 340 340 ret = acpi_power_off_device(dev->wakeup.resources.handles[i]); 341 341 if (ret) { 342 - ACPI_ERROR((AE_INFO, "Transition power state")); 342 + printk(KERN_ERR PREFIX "Transition power state\n"); 343 343 dev->wakeup.flags.valid = 0; 344 344 return_VALUE(-1); 345 345 }
+15 -15
drivers/acpi/processor_core.c
··· 453 453 */ 454 454 status = acpi_evaluate_object(pr->handle, NULL, NULL, &buffer); 455 455 if (ACPI_FAILURE(status)) { 456 - ACPI_ERROR((AE_INFO, "Evaluating processor object")); 456 + printk(KERN_ERR PREFIX "Evaluating processor object\n"); 457 457 return_VALUE(-ENODEV); 458 458 } 459 459 ··· 483 483 if (cpu_index == -1) { 484 484 if (ACPI_FAILURE 485 485 (acpi_processor_hotadd_init(pr->handle, &pr->id))) { 486 - ACPI_ERROR((AE_INFO, 487 - "Getting cpuindex for acpiid 0x%x", 488 - pr->acpi_id)); 486 + printk(KERN_ERR PREFIX 487 + "Getting cpuindex for acpiid 0x%x\n", 488 + pr->acpi_id); 489 489 return_VALUE(-ENODEV); 490 490 } 491 491 } ··· 496 496 if (!object.processor.pblk_address) 497 497 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "No PBLK (NULL address)\n")); 498 498 else if (object.processor.pblk_length != 6) 499 - ACPI_ERROR((AE_INFO, "Invalid PBLK length [%d]", 500 - object.processor.pblk_length)); 499 + printk(KERN_ERR PREFIX "Invalid PBLK length [%d]\n", 500 + object.processor.pblk_length); 501 501 else { 502 502 pr->throttling.address = object.processor.pblk_address; 503 503 pr->throttling.duty_offset = acpi_fadt.duty_offset; ··· 751 751 if (acpi_bus_get_device(handle, &device)) { 752 752 result = acpi_processor_device_add(handle, &device); 753 753 if (result) 754 - ACPI_ERROR((AE_INFO, 755 - "Unable to add the device")); 754 + printk(KERN_ERR PREFIX 755 + "Unable to add the device\n"); 756 756 break; 757 757 } 758 758 759 759 pr = acpi_driver_data(device); 760 760 if (!pr) { 761 - ACPI_ERROR((AE_INFO, "Driver data is NULL")); 761 + printk(KERN_ERR PREFIX "Driver data is NULL\n"); 762 762 break; 763 763 } 764 764 ··· 771 771 if ((!result) && ((pr->id >= 0) && (pr->id < NR_CPUS))) { 772 772 kobject_uevent(&device->kobj, KOBJ_ONLINE); 773 773 } else { 774 - ACPI_ERROR((AE_INFO, "Device [%s] failed to start", 775 - acpi_device_bid(device))); 774 + printk(KERN_ERR PREFIX "Device [%s] failed to start\n", 775 + acpi_device_bid(device)); 776 776 } 777 777 break; 778 778 case ACPI_NOTIFY_EJECT_REQUEST: ··· 780 780 "received ACPI_NOTIFY_EJECT_REQUEST\n")); 781 781 782 782 if (acpi_bus_get_device(handle, &device)) { 783 - ACPI_ERROR((AE_INFO, 784 - "Device don't exist, dropping EJECT")); 783 + printk(KERN_ERR PREFIX 784 + "Device don't exist, dropping EJECT\n"); 785 785 break; 786 786 } 787 787 pr = acpi_driver_data(device); 788 788 if (!pr) { 789 - ACPI_ERROR((AE_INFO, 790 - "Driver data is NULL, dropping EJECT")); 789 + printk(KERN_ERR PREFIX 790 + "Driver data is NULL, dropping EJECT\n"); 791 791 return_VOID; 792 792 } 793 793
+2 -2
drivers/acpi/processor_idle.c
··· 674 674 675 675 /* There must be at least 2 elements */ 676 676 if (!cst || (cst->type != ACPI_TYPE_PACKAGE) || cst->package.count < 2) { 677 - ACPI_ERROR((AE_INFO, "not enough elements in _CST")); 677 + printk(KERN_ERR PREFIX "not enough elements in _CST\n"); 678 678 status = -EFAULT; 679 679 goto end; 680 680 } ··· 683 683 684 684 /* Validate number of power states. */ 685 685 if (count < 1 || count != cst->package.count - 1) { 686 - ACPI_ERROR((AE_INFO, "count given by _CST is not valid")); 686 + printk(KERN_ERR PREFIX "count given by _CST is not valid\n"); 687 687 status = -EFAULT; 688 688 goto end; 689 689 }
+6 -6
drivers/acpi/processor_perflib.c
··· 179 179 pct = (union acpi_object *)buffer.pointer; 180 180 if (!pct || (pct->type != ACPI_TYPE_PACKAGE) 181 181 || (pct->package.count != 2)) { 182 - ACPI_ERROR((AE_INFO, "Invalid _PCT data")); 182 + printk(KERN_ERR PREFIX "Invalid _PCT data\n"); 183 183 result = -EFAULT; 184 184 goto end; 185 185 } ··· 193 193 if ((obj.type != ACPI_TYPE_BUFFER) 194 194 || (obj.buffer.length < sizeof(struct acpi_pct_register)) 195 195 || (obj.buffer.pointer == NULL)) { 196 - ACPI_ERROR((AE_INFO, "Invalid _PCT data (control_register)")); 196 + printk(KERN_ERR PREFIX "Invalid _PCT data (control_register)\n"); 197 197 result = -EFAULT; 198 198 goto end; 199 199 } ··· 209 209 if ((obj.type != ACPI_TYPE_BUFFER) 210 210 || (obj.buffer.length < sizeof(struct acpi_pct_register)) 211 211 || (obj.buffer.pointer == NULL)) { 212 - ACPI_ERROR((AE_INFO, "Invalid _PCT data (status_register)")); 212 + printk(KERN_ERR PREFIX "Invalid _PCT data (status_register)\n"); 213 213 result = -EFAULT; 214 214 goto end; 215 215 } ··· 243 243 244 244 pss = (union acpi_object *)buffer.pointer; 245 245 if (!pss || (pss->type != ACPI_TYPE_PACKAGE)) { 246 - ACPI_ERROR((AE_INFO, "Invalid _PSS data")); 246 + printk(KERN_ERR PREFIX "Invalid _PSS data\n"); 247 247 result = -EFAULT; 248 248 goto end; 249 249 } ··· 288 288 (u32) px->control, (u32) px->status)); 289 289 290 290 if (!px->core_frequency) { 291 - ACPI_ERROR((AE_INFO, 292 - "Invalid _PSS data: freq is zero")); 291 + printk(KERN_ERR PREFIX 292 + "Invalid _PSS data: freq is zero\n"); 293 293 result = -EFAULT; 294 294 kfree(pr->performance->states); 295 295 goto end;
+4 -4
drivers/acpi/processor_thermal.c
··· 82 82 83 83 end: 84 84 if (result) 85 - ACPI_ERROR((AE_INFO, "Unable to set limit")); 85 + printk(KERN_ERR PREFIX "Unable to set limit\n"); 86 86 87 87 return_VALUE(result); 88 88 } ··· 289 289 290 290 result = acpi_processor_apply_limit(pr); 291 291 if (result) 292 - ACPI_ERROR((AE_INFO, "Unable to set thermal limit")); 292 + printk(KERN_ERR PREFIX "Unable to set thermal limit\n"); 293 293 294 294 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Thermal limit now (P%d:T%d)\n", 295 295 pr->limit.thermal.px, pr->limit.thermal.tx)); ··· 371 371 limit_string[count] = '\0'; 372 372 373 373 if (sscanf(limit_string, "%d:%d", &px, &tx) != 2) { 374 - ACPI_ERROR((AE_INFO, "Invalid data format")); 374 + printk(KERN_ERR PREFIX "Invalid data format\n"); 375 375 return_VALUE(-EINVAL); 376 376 } 377 377 378 378 if (pr->flags.throttling) { 379 379 if ((tx < 0) || (tx > (pr->throttling.state_count - 1))) { 380 - ACPI_ERROR((AE_INFO, "Invalid tx")); 380 + printk(KERN_ERR PREFIX "Invalid tx\n"); 381 381 return_VALUE(-EINVAL); 382 382 } 383 383 pr->limit.user.tx = tx;
+1 -1
drivers/acpi/scan.c
··· 969 969 970 970 device = kmalloc(sizeof(struct acpi_device), GFP_KERNEL); 971 971 if (!device) { 972 - ACPI_ERROR((AE_INFO, "Memory allocation error")); 972 + printk(KERN_ERR PREFIX "Memory allocation error\n"); 973 973 return_VALUE(-ENOMEM); 974 974 } 975 975 memset(device, 0, sizeof(struct acpi_device));
+1 -1
drivers/acpi/thermal.c
··· 698 698 ACPI_FUNCTION_TRACE("acpi_thermal_check"); 699 699 700 700 if (!tz) { 701 - ACPI_ERROR((AE_INFO, "Invalid (NULL) context")); 701 + printk(KERN_ERR PREFIX "Invalid (NULL) context\n"); 702 702 return_VOID; 703 703 } 704 704
-1
drivers/acpi/utilities/utmisc.c
··· 950 950 acpi_os_vprintf(format, args); 951 951 acpi_os_printf(" [%X]\n", ACPI_CA_VERSION); 952 952 } 953 - EXPORT_SYMBOL(acpi_ut_error); 954 953 955 954 void ACPI_INTERNAL_VAR_XFACE 956 955 acpi_ut_exception(char *module_name,
+10 -10
drivers/acpi/utils.c
··· 326 326 327 327 *data = kmalloc(element->string.length + 1, GFP_KERNEL); 328 328 if (!data) { 329 - ACPI_ERROR((AE_INFO, "Memory allocation")); 329 + printk(KERN_ERR PREFIX "Memory allocation\n"); 330 330 return_VALUE(-ENOMEM); 331 331 } 332 332 memset(*data, 0, element->string.length + 1); ··· 368 368 package = (union acpi_object *)buffer.pointer; 369 369 370 370 if ((buffer.length == 0) || !package) { 371 - ACPI_ERROR((AE_INFO, "No return object (len %X ptr %p)", 372 - (unsigned)buffer.length, package)); 371 + printk(KERN_ERR PREFIX "No return object (len %X ptr %p)\n", 372 + (unsigned)buffer.length, package); 373 373 status = AE_BAD_DATA; 374 374 acpi_util_eval_error(handle, pathname, status); 375 375 goto end; 376 376 } 377 377 if (package->type != ACPI_TYPE_PACKAGE) { 378 - ACPI_ERROR((AE_INFO, "Expecting a [Package], found type %X", 379 - package->type)); 378 + printk(KERN_ERR PREFIX "Expecting a [Package], found type %X\n", 379 + package->type); 380 380 status = AE_BAD_DATA; 381 381 acpi_util_eval_error(handle, pathname, status); 382 382 goto end; 383 383 } 384 384 if (!package->package.count) { 385 - ACPI_ERROR((AE_INFO, "[Package] has zero elements (%p)", 386 - package)); 385 + printk(KERN_ERR PREFIX "[Package] has zero elements (%p)\n", 386 + package); 387 387 status = AE_BAD_DATA; 388 388 acpi_util_eval_error(handle, pathname, status); 389 389 goto end; ··· 402 402 403 403 if (element->type != ACPI_TYPE_ANY) { 404 404 status = AE_BAD_DATA; 405 - ACPI_ERROR((AE_INFO, 406 - "Expecting a [Reference] package element, found type %X", 407 - element->type)); 405 + printk(KERN_ERR PREFIX 406 + "Expecting a [Reference] package element, found type %X\n", 407 + element->type); 408 408 acpi_util_eval_error(handle, pathname, status); 409 409 break; 410 410 }
+4 -4
drivers/acpi/video.c
··· 324 324 return_VALUE(status); 325 325 obj = (union acpi_object *)buffer.pointer; 326 326 if (!obj || (obj->type != ACPI_TYPE_PACKAGE)) { 327 - ACPI_ERROR((AE_INFO, "Invalid _BCL data")); 327 + printk(KERN_ERR PREFIX "Invalid _BCL data\n"); 328 328 status = -EFAULT; 329 329 goto err; 330 330 } ··· 399 399 if (obj && obj->type == ACPI_TYPE_BUFFER) 400 400 *edid = obj; 401 401 else { 402 - ACPI_ERROR((AE_INFO, "Invalid _DDC data")); 402 + printk(KERN_ERR PREFIX "Invalid _DDC data\n"); 403 403 status = -EFAULT; 404 404 kfree(obj); 405 405 } ··· 560 560 o = (union acpi_object *)&obj->package. 561 561 elements[i]; 562 562 if (o->type != ACPI_TYPE_INTEGER) { 563 - ACPI_ERROR((AE_INFO, "Invalid data")); 563 + printk(KERN_ERR PREFIX "Invalid data\n"); 564 564 continue; 565 565 } 566 566 br->levels[count] = (u32) o->integer.value; ··· 1466 1466 obj = (union acpi_object *)&dod->package.elements[i]; 1467 1467 1468 1468 if (obj->type != ACPI_TYPE_INTEGER) { 1469 - ACPI_ERROR((AE_INFO, "Invalid _DOD data")); 1469 + printk(KERN_ERR PREFIX "Invalid _DOD data\n"); 1470 1470 active_device_list[i].value.int_val = 1471 1471 ACPI_VIDEO_HEAD_INVALID; 1472 1472 }