From patchwork Wed Apr 20 01:40:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Daney X-Patchwork-Id: 8884991 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 40D269F36E for ; Wed, 20 Apr 2016 01:44:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 564902026D for ; Wed, 20 Apr 2016 01:44:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7357F2024F for ; Wed, 20 Apr 2016 01:44:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932575AbcDTBky (ORCPT ); Tue, 19 Apr 2016 21:40:54 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:35913 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932556AbcDTBkv (ORCPT ); Tue, 19 Apr 2016 21:40:51 -0400 Received: by mail-pf0-f174.google.com with SMTP id e128so12362392pfe.3; Tue, 19 Apr 2016 18:40:51 -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=KS0+xTfz6ESl2VjhoM+AHGc3LJ+YC131+1GnlhMMTlY=; b=fYswmTfTqJxGzOekmlno66ZmdkfjmUCVHFQLPB1hx5y+vmzrYEIH4h3EZ/EmKVEoRK /cXezeOGDDDJno76RFfzaKxA3j8uo5nlq5rNKAnJUleq5e9bRnfLlis3Y23lV56oTTtA AhBsjTZLAgAIde67MvewL4kDOo0Zg/h0O4yZQIQp+ponHaqnCGatO5H3fWswMeuiYr1h z4QjwJ6ik5pv7YvUiJzdzPuA1LEOA8JOMxP4zH7Q31moddLL86B7EFFsQbvei/0Y49aT cVmmFNUxABRnhAL36+mIxnM3SxanmpzPPp6brs+OiXp7I5IXB2BY5O7+Px7giFWkOwm+ oQWQ== 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=KS0+xTfz6ESl2VjhoM+AHGc3LJ+YC131+1GnlhMMTlY=; b=mw/i2Ifkl0S/RSFTLnqk/ZMcByI1fxxqW3icY5RfdBk9/bnh7N5M24FyOh7qyGhOLV DYZH1a/Gtx9BqrY+KYftVQXbEpQL1mNhxr+tRFzk/asKeeWgUVY4SyY+mH6TMvvhTPAx Xs76e4MpuGRG85xOtiAss0cQaSXXEG/76PhwsXqNUirmRkbDtRWQJaERpA2WxI08rSDM 2LcX2HNfSFYvNYo2voVqMHxLki2Pi9r5oI028oBikbs85lD3KK2f4E38Nc2bYqQCCZmn 96PfIcDZXd9d1tZTn8LJEqlqk5rjsa/gbKqZj0KINVb7JByDfAQmzHVb2pR3P2u31PQR huCg== X-Gm-Message-State: AOPr4FVVUdqV6u/aWyvsMk+FPV0m5/VQlz2iCfy1v58IX1ThAIidrsQNf4DthBPLuTcdbg== X-Received: by 10.98.14.67 with SMTP id w64mr8676415pfi.154.1461116450510; Tue, 19 Apr 2016 18:40:50 -0700 (PDT) Received: from dl.caveonetworks.com ([64.2.3.194]) by smtp.gmail.com with ESMTPSA id s26sm93648698pfa.0.2016.04.19.18.40.44 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 19 Apr 2016 18:40:46 -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 u3K1eirD023042; Tue, 19 Apr 2016 18:40:44 -0700 Received: (from ddaney@localhost) by dl.caveonetworks.com (8.14.5/8.14.5/Submit) id u3K1ei1T023041; Tue, 19 Apr 2016 18:40:44 -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 Cc: linux-kernel@vger.kernel.org, Robert Richter , David Daney Subject: [PATCH v5 01/14] acpi, numa: Use pr_fmt() instead of printk Date: Tue, 19 Apr 2016 18:40:26 -0700 Message-Id: <1461116439-22991-2-git-send-email-ddaney.cavm@gmail.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1461116439-22991-1-git-send-email-ddaney.cavm@gmail.com> References: <1461116439-22991-1-git-send-email-ddaney.cavm@gmail.com> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.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 72b6e9e..4e427fc 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)