From patchwork Wed Jul 25 23:12:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Toshi Kani X-Patchwork-Id: 1239921 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 80FDEDFFCD for ; Wed, 25 Jul 2012 23:18:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752128Ab2GYXSX (ORCPT ); Wed, 25 Jul 2012 19:18:23 -0400 Received: from g4t0016.houston.hp.com ([15.201.24.19]:15703 "EHLO g4t0016.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752015Ab2GYXSU (ORCPT ); Wed, 25 Jul 2012 19:18:20 -0400 Received: from g4t0009.houston.hp.com (g4t0009.houston.hp.com [16.234.32.26]) by g4t0016.houston.hp.com (Postfix) with ESMTP id 3FC7B1404B; Wed, 25 Jul 2012 23:18:20 +0000 (UTC) Received: from misato.fc.hp.com (misato.fc.hp.com [16.71.12.41]) by g4t0009.houston.hp.com (Postfix) with ESMTP id A7533C024; Wed, 25 Jul 2012 23:18:19 +0000 (UTC) From: Toshi Kani To: lenb@kernel.org, linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, joe@perches.com, bhelgaas@google.com, isimatu.yasuaki@jp.fujitsu.com, liuj97@gmail.com, srivatsa.bhat@linux.vnet.ibm.com, prarit@redhat.com, imammedo@redhat.com, vijaymohan.pandarathil@hp.com, Toshi Kani Subject: [PATCH v3 4/4] ACPI: Update Container hotplug messages Date: Wed, 25 Jul 2012 17:12:58 -0600 Message-Id: <1343257978-7085-5-git-send-email-toshi.kani@hp.com> X-Mailer: git-send-email 1.7.7.6 In-Reply-To: <1343257978-7085-1-git-send-email-toshi.kani@hp.com> References: <1343257978-7085-1-git-send-email-toshi.kani@hp.com> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Updated Container hotplug log messages with acpi_pr_() and pr_(). Signed-off-by: Toshi Kani --- 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..643e962 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", + pr_warn("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; }