Received: by 10.213.65.68 with SMTP id h4csp1479804imn; Thu, 29 Mar 2018 05:35:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/c6SALj9jXKj4ZkRV+GkY0Yvefvu9AcM8ZNcG8Erf25F9bwAsY74gNMDlYt+24gpeeXPZY X-Received: by 10.99.3.144 with SMTP id 138mr5445586pgd.364.1522326937044; Thu, 29 Mar 2018 05:35:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522326937; cv=none; d=google.com; s=arc-20160816; b=x3Az8CRWceVgR/L3SaLsiOhV0B9OIg/aCavcHJxIPjZRIYnmPii5Kmy8XuSCKGo87P LFdOJRhilKkGfkthDKlUghzZScfA6yb3OCiGD22Kd3sw5HaChEny24NH+DCyzO+4kfwS df+c1Z74iBZQUnYkFpLQTJAvJycq1gy02VMuAaMRpTKG8+PIfHWBZtiz/N/T+QlaKM6A G46baJPhlp2RheVecSokMVXr7bk+mbMagVDVmYpFo98gR0TPB5VW9pQh4kEUoqswo88+ G4rwhRZaHeMhhcc/gggSCpJuGQ2TFqRoJTSfweXTpT+igInepzrRM2fC2EVW7+lTjfrb B0Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=5Mjw1S+DKgff+P/qh7rFbA+3KRoxdyQFRMp6/rr5RBc=; b=DVTvDlz1iQON3eODh7po1+r58M7wlhoVn7crChS1UdAxs4Jui00NEk3VpH49X5ZwxA mxlJAAznEnDnxvD1IGiG1l5PdceTMdqW6AI24948sEaQiAZjOHyyTvYiea5cbsRlBS8B DsyKDzh1AnEai28Ke7oOZvf97EB9n0q99HrqQ/kGMX0cLDlGbvPxbp92RC0lJWZksybk UXycBR2sy4ayoiH6LuBJ0HYSl6LZsXsi8tD+T0U71bfjm3LgP2Gc8x9JLQn/18mTfC/v Z2EIElvr9tdCXVX9VOtrqS1PyhpfS/txP+vZhR8rf+6iGCNK4ydbUKWxfK31KnCSWQT8 JFRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y11si3122564pgr.0.2018.03.29.05.35.22; Thu, 29 Mar 2018 05:35:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752511AbeC2MdI (ORCPT + 99 others); Thu, 29 Mar 2018 08:33:08 -0400 Received: from 9pmail.ess.barracuda.com ([64.235.154.211]:59172 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752447AbeC2MdH (ORCPT ); Thu, 29 Mar 2018 08:33:07 -0400 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx1411.ess.rzc.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Thu, 29 Mar 2018 12:32:56 +0000 Received: from mredfearn-linux.mipstec.com (192.168.155.41) by MIPSMAIL01.mipstec.com (10.20.43.31) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 29 Mar 2018 02:49:43 -0700 From: Matt Redfearn To: Daniel Lezcano , Thomas Gleixner CC: , Matt Redfearn , Subject: [PATCH v2] clocksource/drivers/mips-gic-timer: Add pr_fmt and reword pr_* messages Date: Thu, 29 Mar 2018 10:49:03 +0100 Message-ID: <1522316943-2542-1-git-send-email-matt.redfearn@mips.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513781406-27292-1-git-send-email-matt.redfearn@mips.com> References: <1513781406-27292-1-git-send-email-matt.redfearn@mips.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.155.41] X-BESS-ID: 1522326776-452059-22107-55110-3 X-BESS-VER: 2018.4.1-r1803282120 X-BESS-Apparent-Source-IP: 12.201.5.28 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.191512 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Several messages from the MIPS GIC driver include the text "GIC", "GIC timer", etc, but the format is not standard. Add a pr_fmt of "mips-gic-timer: " and reword the messages now that they will be prefixed with the driver name. Signed-off-by: Matt Redfearn --- Changes in v2: Rebase on v4.16-rc7 drivers/clocksource/mips-gic-timer.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/clocksource/mips-gic-timer.c b/drivers/clocksource/mips-gic-timer.c index 986b6796b631..54f8a331b53a 100644 --- a/drivers/clocksource/mips-gic-timer.c +++ b/drivers/clocksource/mips-gic-timer.c @@ -5,6 +5,9 @@ * * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. */ + +#define pr_fmt(fmt) "mips-gic-timer: " fmt + #include #include #include @@ -136,8 +139,7 @@ static int gic_clockevent_init(void) ret = setup_percpu_irq(gic_timer_irq, &gic_compare_irqaction); if (ret < 0) { - pr_err("GIC timer IRQ %d setup failed: %d\n", - gic_timer_irq, ret); + pr_err("IRQ %d setup failed (%d)\n", gic_timer_irq, ret); return ret; } @@ -176,7 +178,7 @@ static int __init __gic_clocksource_init(void) ret = clocksource_register_hz(&gic_clocksource, gic_frequency); if (ret < 0) - pr_warn("GIC: Unable to register clocksource\n"); + pr_warn("Unable to register clocksource\n"); return ret; } @@ -188,7 +190,7 @@ static int __init gic_clocksource_of_init(struct device_node *node) if (!mips_gic_present() || !node->parent || !of_device_is_compatible(node->parent, "mti,gic")) { - pr_warn("No DT definition for the mips gic driver\n"); + pr_warn("No DT definition\n"); return -ENXIO; } @@ -196,7 +198,7 @@ static int __init gic_clocksource_of_init(struct device_node *node) if (!IS_ERR(clk)) { ret = clk_prepare_enable(clk); if (ret < 0) { - pr_err("GIC failed to enable clock\n"); + pr_err("Failed to enable clock\n"); clk_put(clk); return ret; } @@ -204,12 +206,12 @@ static int __init gic_clocksource_of_init(struct device_node *node) gic_frequency = clk_get_rate(clk); } else if (of_property_read_u32(node, "clock-frequency", &gic_frequency)) { - pr_err("GIC frequency not specified.\n"); + pr_err("Frequency not specified\n"); return -EINVAL; } gic_timer_irq = irq_of_parse_and_map(node, 0); if (!gic_timer_irq) { - pr_err("GIC timer IRQ not specified.\n"); + pr_err("IRQ not specified\n"); return -EINVAL; } @@ -220,7 +222,7 @@ static int __init gic_clocksource_of_init(struct device_node *node) ret = gic_clockevent_init(); if (!ret && !IS_ERR(clk)) { if (clk_notifier_register(clk, &gic_clk_nb) < 0) - pr_warn("GIC: Unable to register clock notifier\n"); + pr_warn("Unable to register clock notifier\n"); } /* And finally start the counter */ -- 2.7.4