···9494 ACPI_FUNCTION_TRACE("acpi_container_add");95959696 if (!device) {9797- ACPI_ERROR((AE_INFO, "device is NULL"));9797+ printk(KERN_ERR PREFIX "device is NULL\n");9898 return_VALUE(-EINVAL);9999 }100100
+2-2
drivers/acpi/ec.c
···11071107 acpi_evaluate_integer(ec->common.handle, "_GPE", NULL,11081108 &ec->common.gpe_bit);11091109 if (ACPI_FAILURE(status)) {11101110- ACPI_ERROR((AE_INFO, "Obtaining GPE bit assignment"));11101110+ printk(KERN_ERR PREFIX "Obtaining GPE bit assignment\n");11111111 result = -ENODEV;11121112 goto end;11131113 }···12011201 acpi_ec_io_ports, ec);12021202 if (ACPI_FAILURE(status)12031203 || ec->common.command_addr.register_bit_width == 0) {12041204- ACPI_ERROR((AE_INFO, "Error getting I/O port addresses"));12041204+ printk(KERN_ERR PREFIX "Error getting I/O port addresses\n");12051205 return_VALUE(-ENODEV);12061206 }12071207
+1-1
drivers/acpi/fan.c
···203203204204 result = acpi_bus_get_power(fan->handle, &state);205205 if (result) {206206- ACPI_ERROR((AE_INFO, "Reading power state"));206206+ printk(KERN_ERR PREFIX "Reading power state\n");207207 goto end;208208 }209209
···161161 break;162162 }163163 default:164164- ACPI_ERROR((AE_INFO, "Resource is not an IRQ entry\n"));164164+ printk(KERN_ERR PREFIX "Resource is not an IRQ entry\n");165165 return_ACPI_STATUS(AE_OK);166166 }167167···232232 }233233 break;234234 default:235235- ACPI_ERROR((AE_INFO, "Resource %d isn't an IRQ", resource->type));235235+ printk(KERN_ERR PREFIX "Resource %d isn't an IRQ\n", resource->type);236236 case ACPI_RESOURCE_TYPE_END_TAG:237237 return_ACPI_STATUS(AE_OK);238238 }···264264 /* Query _STA, set link->device->status */265265 result = acpi_bus_get_status(link->device);266266 if (result) {267267- ACPI_ERROR((AE_INFO, "Unable to read status"));267267+ printk(KERN_ERR PREFIX "Unable to read status\n");268268 goto end;269269 }270270···287287 }288288289289 if (acpi_strict && !irq) {290290- ACPI_ERROR((AE_INFO, "_CRS returned 0"));290290+ printk(KERN_ERR PREFIX "_CRS returned 0\n");291291 result = -ENODEV;292292 }293293···357357 /* ignore resource_source, it's optional */358358 break;359359 default:360360- ACPI_ERROR((AE_INFO, "Invalid Resource_type %d\n", link->irq.resource_type));360360+ printk(KERN_ERR PREFIX "Invalid Resource_type %d\n", link->irq.resource_type);361361 result = -EINVAL;362362 goto end;363363···377377 /* Query _STA, set device->status */378378 result = acpi_bus_get_status(link->device);379379 if (result) {380380- ACPI_ERROR((AE_INFO, "Unable to read status"));380380+ printk(KERN_ERR PREFIX "Unable to read status\n");381381 goto end;382382 }383383 if (!link->device->status.enabled) {···496496497497 link = list_entry(node, struct acpi_pci_link, node);498498 if (!link) {499499- ACPI_ERROR((AE_INFO, "Invalid link context"));499499+ printk(KERN_ERR PREFIX "Invalid link context\n");500500 continue;501501 }502502···583583584584 /* Attempt to enable the link device at this IRQ. */585585 if (acpi_pci_link_set(link, irq)) {586586- ACPI_ERROR((AE_INFO, "Unable to set IRQ for %s [%s]. "587587- "Try pci=noacpi or acpi=off",586586+ printk(KERN_ERR PREFIX "Unable to set IRQ for %s [%s]. "587587+ "Try pci=noacpi or acpi=off\n",588588 acpi_device_name(link->device),589589- acpi_device_bid(link->device)));589589+ acpi_device_bid(link->device));590590 return_VALUE(-ENODEV);591591 } else {592592 acpi_irq_penalty[link->irq.active] += PIRQ_PENALTY_PCI_USING;···619619620620 result = acpi_bus_get_device(handle, &device);621621 if (result) {622622- ACPI_ERROR((AE_INFO, "Invalid link device"));622622+ printk(KERN_ERR PREFIX "Invalid link device\n");623623 return_VALUE(-1);624624 }625625626626 link = (struct acpi_pci_link *)acpi_driver_data(device);627627 if (!link) {628628- ACPI_ERROR((AE_INFO, "Invalid link context"));628628+ printk(KERN_ERR PREFIX "Invalid link context\n");629629 return_VALUE(-1);630630 }631631632632 /* TBD: Support multiple index (IRQ) entries per Link Device */633633 if (index) {634634- ACPI_ERROR((AE_INFO, "Invalid index %d", index));634634+ printk(KERN_ERR PREFIX "Invalid index %d\n", index);635635 return_VALUE(-1);636636 }637637···643643644644 if (!link->irq.active) {645645 mutex_unlock(&acpi_link_lock);646646- ACPI_ERROR((AE_INFO, "Link active IRQ is 0!"));646646+ printk(KERN_ERR PREFIX "Link active IRQ is 0!\n");647647 return_VALUE(-1);648648 }649649 link->refcnt++;···675675676676 result = acpi_bus_get_device(handle, &device);677677 if (result) {678678- ACPI_ERROR((AE_INFO, "Invalid link device"));678678+ printk(KERN_ERR PREFIX "Invalid link device\n");679679 return_VALUE(-1);680680 }681681682682 link = (struct acpi_pci_link *)acpi_driver_data(device);683683 if (!link) {684684- ACPI_ERROR((AE_INFO, "Invalid link context"));684684+ printk(KERN_ERR PREFIX "Invalid link context\n");685685 return_VALUE(-1);686686 }687687688688 mutex_lock(&acpi_link_lock);689689 if (!link->irq.initialized) {690690 mutex_unlock(&acpi_link_lock);691691- ACPI_ERROR((AE_INFO, "Link isn't initialized"));691691+ printk(KERN_ERR PREFIX "Link isn't initialized\n");692692 return_VALUE(-1);693693 }694694#ifdef FUTURE_USE···813813 list_for_each(node, &acpi_link.entries) {814814 link = list_entry(node, struct acpi_pci_link, node);815815 if (!link) {816816- ACPI_ERROR((AE_INFO, "Invalid link context"));816816+ printk(KERN_ERR PREFIX "Invalid link context\n");817817 continue;818818 }819819 acpi_pci_link_resume(link);
+5-5
drivers/acpi/pci_root.c
···231231 int bus = 0;232232 acpi_status status;233233234234- ACPI_ERROR((AE_INFO,234234+ printk(KERN_ERR PREFIX235235 "Wrong _BBN value, reboot"236236- " and use option 'pci=noacpi'"));236236+ " and use option 'pci=noacpi'\n");237237238238 status = try_get_root_bridge_busnr(root->handle, &bus);239239 if (ACPI_FAILURE(status))···274274 */275275 root->bus = pci_acpi_scan_root(device, root->id.segment, root->id.bus);276276 if (!root->bus) {277277- ACPI_ERROR((AE_INFO,278278- "Bus %04x:%02x not present in PCI namespace",279279- root->id.segment, root->id.bus));277277+ printk(KERN_ERR PREFIX278278+ "Bus %04x:%02x not present in PCI namespace\n",279279+ root->id.segment, root->id.bus);280280 result = -ENODEV;281281 goto end;282282 }
+4-4
drivers/acpi/power.c
···291291 for (i = 0; i < dev->wakeup.resources.count; i++) {292292 ret = acpi_power_on(dev->wakeup.resources.handles[i]);293293 if (ret) {294294- ACPI_ERROR((AE_INFO, "Transition power state"));294294+ printk(KERN_ERR PREFIX "Transition power state\n");295295 dev->wakeup.flags.valid = 0;296296 return_VALUE(-1);297297 }···300300 /* Execute PSW */301301 status = acpi_evaluate_object(dev->handle, "_PSW", &arg_list, NULL);302302 if (ACPI_FAILURE(status) && (status != AE_NOT_FOUND)) {303303- ACPI_ERROR((AE_INFO, "Evaluate _PSW"));303303+ printk(KERN_ERR PREFIX "Evaluate _PSW\n");304304 dev->wakeup.flags.valid = 0;305305 ret = -1;306306 }···330330 /* Execute PSW */331331 status = acpi_evaluate_object(dev->handle, "_PSW", &arg_list, NULL);332332 if (ACPI_FAILURE(status) && (status != AE_NOT_FOUND)) {333333- ACPI_ERROR((AE_INFO, "Evaluate _PSW"));333333+ printk(KERN_ERR PREFIX "Evaluate _PSW\n");334334 dev->wakeup.flags.valid = 0;335335 return_VALUE(-1);336336 }···339339 for (i = 0; i < dev->wakeup.resources.count; i++) {340340 ret = acpi_power_off_device(dev->wakeup.resources.handles[i]);341341 if (ret) {342342- ACPI_ERROR((AE_INFO, "Transition power state"));342342+ printk(KERN_ERR PREFIX "Transition power state\n");343343 dev->wakeup.flags.valid = 0;344344 return_VALUE(-1);345345 }
+15-15
drivers/acpi/processor_core.c
···453453 */454454 status = acpi_evaluate_object(pr->handle, NULL, NULL, &buffer);455455 if (ACPI_FAILURE(status)) {456456- ACPI_ERROR((AE_INFO, "Evaluating processor object"));456456+ printk(KERN_ERR PREFIX "Evaluating processor object\n");457457 return_VALUE(-ENODEV);458458 }459459···483483 if (cpu_index == -1) {484484 if (ACPI_FAILURE485485 (acpi_processor_hotadd_init(pr->handle, &pr->id))) {486486- ACPI_ERROR((AE_INFO,487487- "Getting cpuindex for acpiid 0x%x",488488- pr->acpi_id));486486+ printk(KERN_ERR PREFIX487487+ "Getting cpuindex for acpiid 0x%x\n",488488+ pr->acpi_id);489489 return_VALUE(-ENODEV);490490 }491491 }···496496 if (!object.processor.pblk_address)497497 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "No PBLK (NULL address)\n"));498498 else if (object.processor.pblk_length != 6)499499- ACPI_ERROR((AE_INFO, "Invalid PBLK length [%d]",500500- object.processor.pblk_length));499499+ printk(KERN_ERR PREFIX "Invalid PBLK length [%d]\n",500500+ object.processor.pblk_length);501501 else {502502 pr->throttling.address = object.processor.pblk_address;503503 pr->throttling.duty_offset = acpi_fadt.duty_offset;···751751 if (acpi_bus_get_device(handle, &device)) {752752 result = acpi_processor_device_add(handle, &device);753753 if (result)754754- ACPI_ERROR((AE_INFO,755755- "Unable to add the device"));754754+ printk(KERN_ERR PREFIX755755+ "Unable to add the device\n");756756 break;757757 }758758759759 pr = acpi_driver_data(device);760760 if (!pr) {761761- ACPI_ERROR((AE_INFO, "Driver data is NULL"));761761+ printk(KERN_ERR PREFIX "Driver data is NULL\n");762762 break;763763 }764764···771771 if ((!result) && ((pr->id >= 0) && (pr->id < NR_CPUS))) {772772 kobject_uevent(&device->kobj, KOBJ_ONLINE);773773 } else {774774- ACPI_ERROR((AE_INFO, "Device [%s] failed to start",775775- acpi_device_bid(device)));774774+ printk(KERN_ERR PREFIX "Device [%s] failed to start\n",775775+ acpi_device_bid(device));776776 }777777 break;778778 case ACPI_NOTIFY_EJECT_REQUEST:···780780 "received ACPI_NOTIFY_EJECT_REQUEST\n"));781781782782 if (acpi_bus_get_device(handle, &device)) {783783- ACPI_ERROR((AE_INFO,784784- "Device don't exist, dropping EJECT"));783783+ printk(KERN_ERR PREFIX784784+ "Device don't exist, dropping EJECT\n");785785 break;786786 }787787 pr = acpi_driver_data(device);788788 if (!pr) {789789- ACPI_ERROR((AE_INFO,790790- "Driver data is NULL, dropping EJECT"));789789+ printk(KERN_ERR PREFIX790790+ "Driver data is NULL, dropping EJECT\n");791791 return_VOID;792792 }793793
+2-2
drivers/acpi/processor_idle.c
···674674675675 /* There must be at least 2 elements */676676 if (!cst || (cst->type != ACPI_TYPE_PACKAGE) || cst->package.count < 2) {677677- ACPI_ERROR((AE_INFO, "not enough elements in _CST"));677677+ printk(KERN_ERR PREFIX "not enough elements in _CST\n");678678 status = -EFAULT;679679 goto end;680680 }···683683684684 /* Validate number of power states. */685685 if (count < 1 || count != cst->package.count - 1) {686686- ACPI_ERROR((AE_INFO, "count given by _CST is not valid"));686686+ printk(KERN_ERR PREFIX "count given by _CST is not valid\n");687687 status = -EFAULT;688688 goto end;689689 }
+6-6
drivers/acpi/processor_perflib.c
···179179 pct = (union acpi_object *)buffer.pointer;180180 if (!pct || (pct->type != ACPI_TYPE_PACKAGE)181181 || (pct->package.count != 2)) {182182- ACPI_ERROR((AE_INFO, "Invalid _PCT data"));182182+ printk(KERN_ERR PREFIX "Invalid _PCT data\n");183183 result = -EFAULT;184184 goto end;185185 }···193193 if ((obj.type != ACPI_TYPE_BUFFER)194194 || (obj.buffer.length < sizeof(struct acpi_pct_register))195195 || (obj.buffer.pointer == NULL)) {196196- ACPI_ERROR((AE_INFO, "Invalid _PCT data (control_register)"));196196+ printk(KERN_ERR PREFIX "Invalid _PCT data (control_register)\n");197197 result = -EFAULT;198198 goto end;199199 }···209209 if ((obj.type != ACPI_TYPE_BUFFER)210210 || (obj.buffer.length < sizeof(struct acpi_pct_register))211211 || (obj.buffer.pointer == NULL)) {212212- ACPI_ERROR((AE_INFO, "Invalid _PCT data (status_register)"));212212+ printk(KERN_ERR PREFIX "Invalid _PCT data (status_register)\n");213213 result = -EFAULT;214214 goto end;215215 }···243243244244 pss = (union acpi_object *)buffer.pointer;245245 if (!pss || (pss->type != ACPI_TYPE_PACKAGE)) {246246- ACPI_ERROR((AE_INFO, "Invalid _PSS data"));246246+ printk(KERN_ERR PREFIX "Invalid _PSS data\n");247247 result = -EFAULT;248248 goto end;249249 }···288288 (u32) px->control, (u32) px->status));289289290290 if (!px->core_frequency) {291291- ACPI_ERROR((AE_INFO,292292- "Invalid _PSS data: freq is zero"));291291+ printk(KERN_ERR PREFIX292292+ "Invalid _PSS data: freq is zero\n");293293 result = -EFAULT;294294 kfree(pr->performance->states);295295 goto end;
+4-4
drivers/acpi/processor_thermal.c
···82828383 end:8484 if (result)8585- ACPI_ERROR((AE_INFO, "Unable to set limit"));8585+ printk(KERN_ERR PREFIX "Unable to set limit\n");86868787 return_VALUE(result);8888}···289289290290 result = acpi_processor_apply_limit(pr);291291 if (result)292292- ACPI_ERROR((AE_INFO, "Unable to set thermal limit"));292292+ printk(KERN_ERR PREFIX "Unable to set thermal limit\n");293293294294 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Thermal limit now (P%d:T%d)\n",295295 pr->limit.thermal.px, pr->limit.thermal.tx));···371371 limit_string[count] = '\0';372372373373 if (sscanf(limit_string, "%d:%d", &px, &tx) != 2) {374374- ACPI_ERROR((AE_INFO, "Invalid data format"));374374+ printk(KERN_ERR PREFIX "Invalid data format\n");375375 return_VALUE(-EINVAL);376376 }377377378378 if (pr->flags.throttling) {379379 if ((tx < 0) || (tx > (pr->throttling.state_count - 1))) {380380- ACPI_ERROR((AE_INFO, "Invalid tx"));380380+ printk(KERN_ERR PREFIX "Invalid tx\n");381381 return_VALUE(-EINVAL);382382 }383383 pr->limit.user.tx = tx;