Received: by 10.223.164.202 with SMTP id h10csp77850wrb; Thu, 9 Nov 2017 03:04:14 -0800 (PST) X-Google-Smtp-Source: ABhQp+QcHv7iFeN01VSuzdE/cM9FwrQ4cW25i3q7MwF4HeDoNyXQGGOtrp6bslwHCX1ecHFwgM4K X-Received: by 10.98.12.2 with SMTP id u2mr95999pfi.158.1510225454167; Thu, 09 Nov 2017 03:04:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510225454; cv=none; d=google.com; s=arc-20160816; b=Rtd3qss8Jt7wOl1q6xLnAPjvW9an2KXd4pKToowf3eXqWnrquKg2ZqarwD+fl+pTaU qMkbsAGY5K2YfBlrc8UbW4d/fJDtyHoFmMubQqee8JBjOyxVgt0AuYpHOz8lMO0ztH0K +VewJTCii8fdBwMszdHEmVibvSzad/GW4kh9unCSNaTTQO/dIM/UKqytGLalbr195SUz knc2X9xLkV9Z+aR0WH6Yx64QpluF6upO5xE3UadRFLbjIlFuF0Nari9aUuqYu1J4TlYi 6VoMvYDt+NMrvVDeoYLbT7hhsUIJgKcjg3X9BsITbq949ENgfHBAjwJUPWvjVR3z/M3N nqWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=EGaGLLqdEEjF7NCs28TxfYMXXmSlMXvdl6JdLxEo9do=; b=aNZE4ul580f13boHpcshXqsbSiYP8s3qXX0S9mpv+wn8LAISxBvKlwh1AIhRR/dcyF JTydS2r2bGq+nErGPs32eZTb/mjlThGhVg5+wZH8mImRkysmB3j2pMW+DqG9hGreYTb0 1ncKd6x4qosp/T2OQgcKF4v2by12tO+sYOCLCSFfEks8ETB/02P6UD/DbSGUeRVnJOVO l0D/dLBkaEPQW5a7v7U+64aTJdVs9sWRWhfr8LYRwAuTVXldTcdlkbeCj2rzpt7NA5UN iQRUQ7K23LEjT3mvjknEpTz2JhRBy7lEXEKkmHe8gPs61zbCg1hgKjPnAkkuBeoDyFAN 6Nsw== 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 c25si5916443pgn.265.2017.11.09.03.04.02; Thu, 09 Nov 2017 03:04:14 -0800 (PST) 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 S1753848AbdKILDO (ORCPT + 81 others); Thu, 9 Nov 2017 06:03:14 -0500 Received: from 19pmail.ess.barracuda.com ([64.235.154.230]:37315 "EHLO 19pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753634AbdKILDK (ORCPT ); Thu, 9 Nov 2017 06:03:10 -0500 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx1402.ess.rzc.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Thu, 09 Nov 2017 11:02:56 +0000 Received: from mredfearn-linux.mipstec.com (10.150.130.83) by MIPSMAIL01.mipstec.com (10.20.43.31) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 9 Nov 2017 03:02:53 -0800 From: Matt Redfearn To: Marc Zyngier , Thomas Gleixner CC: , Matt Redfearn , "Jason Cooper" , Subject: [PATCH 1/2] irqchip/mips-gic: Add pr_fmt and reword pr_* messages Date: Thu, 9 Nov 2017 11:02:44 +0000 Message-ID: <1510225365-2584-1-git-send-email-matt.redfearn@mips.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.150.130.83] X-BESS-ID: 1510225376-321458-16046-53236-1 X-BESS-VER: 2017.12-r1709122024 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.186750 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", but the format is not standard. Add a pr_fmt of "irq-mips-gic: " and reword the messages now that they will be prefixed with the driver name. Signed-off-by: Matt Redfearn Reviewed-by: Paul Burton --- drivers/irqchip/irq-mips-gic.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/irqchip/irq-mips-gic.c b/drivers/irqchip/irq-mips-gic.c index 3ccebb020f40..9b768899f07b 100644 --- a/drivers/irqchip/irq-mips-gic.c +++ b/drivers/irqchip/irq-mips-gic.c @@ -6,6 +6,9 @@ * Copyright (C) 2008 Ralf Baechle (ralf@linux-mips.org) * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. */ + +#define pr_fmt(fmt) "irq-mips-gic: " fmt + #include #include #include @@ -685,7 +688,7 @@ static int __init gic_of_init(struct device_node *node, cpu_vec = find_first_zero_bit(&reserved, hweight_long(ST0_IM)); if (cpu_vec == hweight_long(ST0_IM)) { - pr_err("No CPU vectors available for GIC\n"); + pr_err("No CPU vectors available\n"); return -ENODEV; } @@ -699,7 +702,7 @@ static int __init gic_of_init(struct device_node *node, ~CM_GCR_GIC_BASE_GICEN; gic_len = 0x20000; } else { - pr_err("Failed to get GIC memory range\n"); + pr_err("Failed to get memory range\n"); return -ENODEV; } } else { @@ -757,7 +760,7 @@ static int __init gic_of_init(struct device_node *node, gic_shared_intrs, 0, &gic_irq_domain_ops, NULL); if (!gic_irq_domain) { - pr_err("Failed to add GIC IRQ domain"); + pr_err("Failed to add IRQ domain"); return -ENXIO; } @@ -766,7 +769,7 @@ static int __init gic_of_init(struct device_node *node, GIC_NUM_LOCAL_INTRS + gic_shared_intrs, node, &gic_ipi_domain_ops, NULL); if (!gic_ipi_domain) { - pr_err("Failed to add GIC IPI domain"); + pr_err("Failed to add IPI domain"); return -ENXIO; } -- 2.7.4 From 1583482822385101784@xxx Wed Nov 08 07:41:38 +0000 2017 X-GM-THRID: 1583482822385101784 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread