lkml.org 
[lkml]   [2012]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 4/4] ACPI: Update Container hotplug messages
Date
Updated Container hotplug log messages with acpi_pr_<level>()
and pr_<level>().

Signed-off-by: Toshi Kani <toshi.kani@hp.com>
---
drivers/acpi/container.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/acpi/container.c b/drivers/acpi/container.c
index 01a986d..6672386 100644
--- a/drivers/acpi/container.c
+++ b/drivers/acpi/container.c
@@ -99,7 +99,7 @@ static int acpi_container_add(struct acpi_device *device)


if (!device) {
- printk(KERN_ERR PREFIX "device is NULL\n");
+ pr_err(PREFIX "device is NULL\n");
return -EINVAL;
}

@@ -164,7 +164,7 @@ static void container_notify_cb(acpi_handle handle, u32 type, void *context)
case ACPI_NOTIFY_BUS_CHECK:
/* Fall through */
case ACPI_NOTIFY_DEVICE_CHECK:
- printk(KERN_WARNING "Container driver received %s event\n",
+ acpi_pr_warn(handle, "Container driver received %s event\n",
(type == ACPI_NOTIFY_BUS_CHECK) ?
"ACPI_NOTIFY_BUS_CHECK" : "ACPI_NOTIFY_DEVICE_CHECK");

@@ -185,7 +185,7 @@ static void container_notify_cb(acpi_handle handle, u32 type, void *context)

result = container_device_add(&device, handle);
if (result) {
- pr_warn("Failed to add container\n");
+ acpi_pr_warn(handle, "Failed to add container\n");
break;
}

--
1.7.7.6


\
 
 \ /
  Last update: 2012-07-18 23:41    [W:0.198 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site