From patchwork Fri Jul 20 16:54:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Toshi Kani X-Patchwork-Id: 1221741 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 138C8E0087 for ; Fri, 20 Jul 2012 16:59:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753344Ab2GTQ7i (ORCPT ); Fri, 20 Jul 2012 12:59:38 -0400 Received: from g1t0026.austin.hp.com ([15.216.28.33]:39211 "EHLO g1t0026.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753294Ab2GTQ7g (ORCPT ); Fri, 20 Jul 2012 12:59:36 -0400 Received: from g1t0038.austin.hp.com (g1t0038.austin.hp.com [16.236.32.44]) by g1t0026.austin.hp.com (Postfix) with ESMTP id 2212FC48A; Fri, 20 Jul 2012 16:59:36 +0000 (UTC) Received: from misato.fc.hp.com (misato.fc.hp.com [16.71.12.41]) by g1t0038.austin.hp.com (Postfix) with ESMTP id 8310F30044; Fri, 20 Jul 2012 16:59:35 +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 v2 4/4] ACPI: Update Container hotplug messages Date: Fri, 20 Jul 2012 10:54:16 -0600 Message-Id: <1342803256-17514-5-git-send-email-toshi.kani@hp.com> X-Mailer: git-send-email 1.7.7.6 In-Reply-To: <1342803256-17514-1-git-send-email-toshi.kani@hp.com> References: <1342803256-17514-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; }