From patchwork Fri Jan 18 16:07:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiang Liu X-Patchwork-Id: 213658 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3D48B2C0082 for ; Sat, 19 Jan 2013 03:09:23 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755398Ab3ARQI3 (ORCPT ); Fri, 18 Jan 2013 11:08:29 -0500 Received: from mail-pb0-f45.google.com ([209.85.160.45]:45604 "EHLO mail-pb0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755345Ab3ARQI0 (ORCPT ); Fri, 18 Jan 2013 11:08:26 -0500 Received: by mail-pb0-f45.google.com with SMTP id mc8so2122339pbc.18 for ; Fri, 18 Jan 2013 08:08:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=Omjm3FdaluSWEMVWu3FrdTa7/YViWCZ0j6bjSSmPfg0=; b=jOO725juC/1vBoOLfG98w7bjjSxPiPHrk7qcRWSQ7A3hx1BbNA5HKTmCVXt/maYW8X xpnrZKJ1CkKjcPbyFpOAXH939UgrWPokSguzzaZxyWCYvXyAy3LydmW//qr+HHYfnk0x 3g0b2CZGGzZbO69/+AdGyt+5TALTCOFbQU/gM7Ni50ZIwWPol2TlAIr98+YG/pVVW0DT yGX96CuY3aIPE/WW40IiPs5vL/Fdu1gbUYszokOKxLca1ABBB5VBYgi6kAZuNDk1tcR/ Xfvzs+E85PWvO0u/C5mwysp7EQm/XGrBbZiSYPOdnmpZOOKY2BjzZi1j11r23fCRzKjf 4rcA== X-Received: by 10.68.194.6 with SMTP id hs6mr6658336pbc.77.1358525306206; Fri, 18 Jan 2013 08:08:26 -0800 (PST) Received: from localhost.localdomain ([120.197.109.98]) by mx.google.com with ESMTPS id ux4sm3320742pbc.25.2013.01.18.08.08.22 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Jan 2013 08:08:25 -0800 (PST) From: Jiang Liu To: "Rafael J . Wysocki" , Bjorn Helgaas Cc: Jiang Liu , Yinghai Lu , Kenji Kaneshige , Yijing Wang , Jiang Liu , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Greg Kroah-Hartman , ACPI Devel Maling List , Toshi Kani , Myron Stowe Subject: [RFC PATCH v5 6/8] pci_slot: replace printk(KERN_xxx) with pr_xxx() Date: Sat, 19 Jan 2013 00:07:44 +0800 Message-Id: <1358525267-14268-7-git-send-email-jiang.liu@huawei.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1358525267-14268-1-git-send-email-jiang.liu@huawei.com> References: <1358525267-14268-1-git-send-email-jiang.liu@huawei.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Trivial changes to replace printk(KERN_xxx) with pr_xxx(). Signed-off-by: Jiang Liu --- drivers/acpi/pci_slot.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/acpi/pci_slot.c b/drivers/acpi/pci_slot.c index 2b38f4d..3b821db 100644 --- a/drivers/acpi/pci_slot.c +++ b/drivers/acpi/pci_slot.c @@ -52,13 +52,12 @@ module_param(debug, bool, 0644); ACPI_MODULE_NAME("pci_slot"); #define MY_NAME "pci_slot" -#define err(format, arg...) printk(KERN_ERR "%s: " format , MY_NAME , ## arg) -#define info(format, arg...) printk(KERN_INFO "%s: " format , MY_NAME , ## arg) +#define err(format, arg...) pr_err("%s: " format , MY_NAME , ## arg) +#define info(format, arg...) pr_info("%s: " format , MY_NAME , ## arg) #define dbg(format, arg...) \ do { \ if (debug) \ - printk(KERN_DEBUG "%s: " format, \ - MY_NAME , ## arg); \ + pr_debug("%s: " format, MY_NAME , ## arg); \ } while (0) #define SLOT_NAME_SIZE 21 /* Inspired by #define in acpiphp.h */