From patchwork Wed Oct 7 15:26:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 7346261 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C2992BEEA4 for ; Wed, 7 Oct 2015 15:30:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BE5C5205F5 for ; Wed, 7 Oct 2015 15:30:25 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id B9B63205F2 for ; Wed, 7 Oct 2015 15:30:24 +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 1Zjqda-00056Z-QZ; Wed, 07 Oct 2015 15:28:14 +0000 Received: from mail-pa0-f52.google.com ([209.85.220.52]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zjqcp-0004bK-Mq for linux-arm-kernel@lists.infradead.org; Wed, 07 Oct 2015 15:27:29 +0000 Received: by pacex6 with SMTP id ex6so24523477pac.0 for ; Wed, 07 Oct 2015 08:27:07 -0700 (PDT) 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=nUhVJguwH3n7iLMxdnv0G9JEWIIaqZOIKVTyTw8zUIA=; b=UEhAl41Ub5S8E6DaWiAXvoFYdlS0/pUbmTgdKigWhrbkfaBWIM9ziA6fiMd2v/RqIh EjWi/e19OPn7GsbM6SQ/r0mxHfUKWTfV3HazlFUJXZ8LNFR2F34XV8gV0Rl5EL1JHxSe 0I6CLKv9MnXuwkd4NnoMDsr0kOwCtYpY0WRwDpua3bCj1DTXtHcsMbGnZmyqqzBEKPA/ a8pa1XZo1dk4R19eM+2xVQ3wtXhgngkZEVMREY9YeJSTVCpbqYDN/SGE2rfv12fi2FNA qB/wy4PTSfTmF/RcUXhBBixl/5Dvbyl/ZFr382wGf/dpZMTGx4Skb9kYaVrIEBCI/Q5s T0jA== X-Gm-Message-State: ALoCoQlwVukIktk1H6vXxKRvBh+ve2AM4TFZ+kn56ugspFaDbiS7SWOIf9oNjiDY5o726RJ5cv+x X-Received: by 10.68.194.73 with SMTP id hu9mr1795270pbc.146.1444231626991; Wed, 07 Oct 2015 08:27:06 -0700 (PDT) Received: from t430.cg.shawcable.net ([184.64.168.246]) by smtp.gmail.com with ESMTPSA id ja4sm40170570pbb.19.2015.10.07.08.27.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Oct 2015 08:27:06 -0700 (PDT) From: Mathieu Poirier To: gregkh@linuxfoundation.org Subject: [PATCH 6/6] coresight: etm3x: making error message unambiguous Date: Wed, 7 Oct 2015 09:26:43 -0600 Message-Id: <1444231603-26676-7-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1444231603-26676-1-git-send-email-mathieu.poirier@linaro.org> References: <1444231603-26676-1-git-send-email-mathieu.poirier@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151007_082727_906178_FC559DB1 X-CRM114-Status: GOOD ( 11.59 ) X-Spam-Score: -2.6 (--) 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: mathieu.poirier@linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, 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 By adding the function name at the beginning of the error message there is no doubt as to where the failing condition occurred. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm3x.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c index 87374b3388ad..d630b7ece735 100644 --- a/drivers/hwtracing/coresight/coresight-etm3x.c +++ b/drivers/hwtracing/coresight/coresight-etm3x.c @@ -191,7 +191,8 @@ static void etm_set_prog(struct etm_drvdata *drvdata) isb(); if (coresight_timeout_etm(drvdata, ETMSR, ETMSR_PROG_BIT, 1)) { dev_err(drvdata->dev, - "timeout observed when probing at offset %#x\n", ETMSR); + "%s: timeout observed when probing at offset %#x\n", + __func__, ETMSR); } } @@ -209,7 +210,8 @@ static void etm_clr_prog(struct etm_drvdata *drvdata) isb(); if (coresight_timeout_etm(drvdata, ETMSR, ETMSR_PROG_BIT, 0)) { dev_err(drvdata->dev, - "timeout observed when probing at offset %#x\n", ETMSR); + "%s: timeout observed when probing at offset %#x\n", + __func__, ETMSR); } }