From patchwork Tue May 24 22:35:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Daney X-Patchwork-Id: 9134385 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2DDAB607D3 for ; Tue, 24 May 2016 22:39:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22DD2281E3 for ; Tue, 24 May 2016 22:39:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 173E42822B; Tue, 24 May 2016 22:39:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D0608281E3 for ; Tue, 24 May 2016 22:39:38 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b5KwC-0006rk-Aj; Tue, 24 May 2016 22:36:32 +0000 Received: from mail-pa0-x241.google.com ([2607:f8b0:400e:c03::241]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b5Kw2-0006nS-QH for linux-arm-kernel@lists.infradead.org; Tue, 24 May 2016 22:36:23 +0000 Received: by mail-pa0-x241.google.com with SMTP id yl2so3273629pac.1 for ; Tue, 24 May 2016 15:36:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ATCrsvVnJy9fDymMHQ0UpbH6c8XD4eYCALNBDJonQ0I=; b=uzNc5yOEMxptl/3AjfmIScQfYW3+2/vSN/eIMkesxRplWNbh9y7vVhGwZrl6XOCEp1 bdoKxUP6nfXpXT2NUB8BXTOCqtYROc/AsGvbZQNqnoSRuZLJmxj4OwrmvzzGiHFWgr5u SOg18LOZefN/07RujhapdLEDX9TrB87iDGPNxNIe1Z9IWotw1o9tetr4jztQKZzuIFmw rFXz9B8dAMfG2Ao/+GgMCLkDgxNFbMxOoCnyxZffldMCFl/PGmGChyJnTNIVnQ3aMtEq YNzOehsZFR9hx71mXIP/BUSMoDxdH8qHFkCEtT57FCCQqdRf3f0NwVTMN6mDt/YrIjJ0 +cZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ATCrsvVnJy9fDymMHQ0UpbH6c8XD4eYCALNBDJonQ0I=; b=fJw/OpKJooQ0TtlJ50nnExSVv6U2RynEuJhMDtIlLVFqbNmLU35XVnEbUYMH1GRiog iLmuKSBUGrS3PPreSYP20IYrs/v6xL+BHlayvcOLFT+Q0cbsYHSamjDKG8S2l9vD+rK5 Wj3rlIzobIfmo8CvAgLH+ZJjJpvu8Z1ersaObC0CvNPgb7vl1V5OrVb1e9ir4hD86A9d OgmNyE/T4mYGNFXigaBrucvQK1EIzSK/A+sNVBipgP9QFIp3niBkpzOMexIpw2mPLoTR gNnjX5ieyk7FP/l2pqCm2AWrf5r8BCBw0eYgjiSXjbyPZ9QW/FkAnMqA3hhIZ5aTeW5X LiAA== X-Gm-Message-State: ALyK8tII4dmMgj2Fr3YrorZP2fAv8+8QAeU4DfstbHB0p0DWZMB+Nhbi08OH6K+iYqyijg== X-Received: by 10.66.132.37 with SMTP id or5mr870519pab.144.1464129362055; Tue, 24 May 2016 15:36:02 -0700 (PDT) Received: from dl.caveonetworks.com ([50.233.148.158]) by smtp.gmail.com with ESMTPSA id m64sm33915157pfc.19.2016.05.24.15.35.58 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 May 2016 15:35:58 -0700 (PDT) Received: from dl.caveonetworks.com (localhost.localdomain [127.0.0.1]) by dl.caveonetworks.com (8.14.5/8.14.5) with ESMTP id u4OMZv1g019039; Tue, 24 May 2016 15:35:57 -0700 Received: (from ddaney@localhost) by dl.caveonetworks.com (8.14.5/8.14.5/Submit) id u4OMZvSH019038; Tue, 24 May 2016 15:35:57 -0700 From: David Daney To: Will Deacon , linux-arm-kernel@lists.infradead.org, Mark Rutland , Catalin Marinas , Tony Luck , Fenghua Yu , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, "Rafael J. Wysocki" , Len Brown , Rob Herring , Frank Rowand , Grant Likely , Robert Moore , Lv Zheng , Hanjun Guo , Marc Zyngier , linux-ia64@vger.kernel.org, linux-acpi@vger.kernel.org, devel@acpica.org Subject: [PATCH v7 01/15] acpi, numa: Use pr_fmt() instead of printk Date: Tue, 24 May 2016 15:35:31 -0700 Message-Id: <1464129345-18985-2-git-send-email-ddaney.cavm@gmail.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1464129345-18985-1-git-send-email-ddaney.cavm@gmail.com> References: <1464129345-18985-1-git-send-email-ddaney.cavm@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160524_153622_890859_B2003F10 X-CRM114-Status: GOOD ( 14.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Robert Richter , linux-kernel@vger.kernel.org, David Daney MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Hanjun Guo Just do some cleanups to replace printk with pr_fmt(). Signed-off-by: Hanjun Guo Signed-off-by: Robert Richter Signed-off-by: David Daney --- drivers/acpi/numa.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c index d176e0e..bdb7622 100644 --- a/drivers/acpi/numa.c +++ b/drivers/acpi/numa.c @@ -18,6 +18,9 @@ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * */ + +#define pr_fmt(fmt) "ACPI: " fmt + #include #include #include @@ -28,8 +31,6 @@ #include #include -#define PREFIX "ACPI: " - #define ACPI_NUMA 0x80000000 #define _COMPONENT ACPI_NUMA ACPI_MODULE_NAME("numa"); @@ -187,9 +188,8 @@ acpi_table_print_srat_entry(struct acpi_subtable_header *header) #endif /* ACPI_DEBUG_OUTPUT */ break; default: - printk(KERN_WARNING PREFIX - "Found unsupported SRAT entry (type = 0x%x)\n", - header->type); + pr_warn("Found unsupported SRAT entry (type = 0x%x)\n", + header->type); break; } } @@ -222,7 +222,7 @@ static int __init acpi_parse_slit(struct acpi_table_header *table) struct acpi_table_slit *slit = (struct acpi_table_slit *)table; if (!slit_valid(slit)) { - printk(KERN_INFO "ACPI: SLIT table looks invalid. Not used.\n"); + pr_info("SLIT table looks invalid. Not used.\n"); return -EINVAL; } acpi_numa_slit_init(slit); @@ -233,12 +233,9 @@ static int __init acpi_parse_slit(struct acpi_table_header *table) void __init __weak acpi_numa_x2apic_affinity_init(struct acpi_srat_x2apic_cpu_affinity *pa) { - printk(KERN_WARNING PREFIX - "Found unsupported x2apic [0x%08x] SRAT entry\n", pa->apic_id); - return; + pr_warn("Found unsupported x2apic [0x%08x] SRAT entry\n", pa->apic_id); } - static int __init acpi_parse_x2apic_affinity(struct acpi_subtable_header *header, const unsigned long end)