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: 54592 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by patches.linaro.org (Postfix) with ESMTPS id 3D67A22FEF for ; Wed, 7 Oct 2015 15:27:50 +0000 (UTC) Received: by lbcao8 with SMTP id ao8sf8805945lbc.1 for ; Wed, 07 Oct 2015 08:27:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=Pg35pRAFih97780irZlmKsBapDUITfv1uSYRKrBYSfg=; b=M946qJVcVoqZf74Y6gNC6UNOinALTjsmvxS7eDfkavnRhzeCTbPBkJMM5NpMDDucjB AxHTFh5oawWhva3rKRL7MgeuqiF1p7xRvbo+si0k9kccjmMbhjyTjnCgg/OhYxkR1uVP hFNvQaZ1Vcbo9WlF6CUuQiFIfTplMYNBlCvmZa1yge8UBSI6AP8amSOM90DeF7B2Ex06 V7S0EpTbl+yD+i6vHYv3fjObFoO4QkXJjuajYCwfGMiAPVX8rbDkL0YwTuQqMF2NLSw1 RzRLAWXggywPgo3bLy4uA4ilngGtCOAezewuHyghw/Jv3eFrcxtSszy2vkfM3Ny9BrAD Gwjw== X-Gm-Message-State: ALoCoQlNRbaSzqH38MMkIeH5LjlHjmJgE8zPakoElV9tAEPALoGtai3KqT6sluF4AKdY774h6hPP X-Received: by 10.112.151.9 with SMTP id um9mr362047lbb.19.1444231669221; Wed, 07 Oct 2015 08:27:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.87.139 with SMTP id l133ls77643lfb.34.gmail; Wed, 07 Oct 2015 08:27:49 -0700 (PDT) X-Received: by 10.112.157.195 with SMTP id wo3mr938957lbb.0.1444231669051; Wed, 07 Oct 2015 08:27:49 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id lz10si25576901lbb.114.2015.10.07.08.27.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Oct 2015 08:27:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by lbos8 with SMTP id s8so15415343lbo.0 for ; Wed, 07 Oct 2015 08:27:48 -0700 (PDT) X-Received: by 10.25.150.199 with SMTP id y190mr608115lfd.35.1444231668739; Wed, 07 Oct 2015 08:27:48 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp50475lbq; Wed, 7 Oct 2015 08:27:47 -0700 (PDT) X-Received: by 10.68.89.100 with SMTP id bn4mr1750143pbb.93.1444231667754; Wed, 07 Oct 2015 08:27:47 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rw10si58506814pac.173.2015.10.07.08.27.47; Wed, 07 Oct 2015 08:27:47 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754860AbbJGP1p (ORCPT + 30 others); Wed, 7 Oct 2015 11:27:45 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:32800 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754794AbbJGP1H (ORCPT ); Wed, 7 Oct 2015 11:27:07 -0400 Received: by pacex6 with SMTP id ex6so24523472pac.0 for ; Wed, 07 Oct 2015 08:27:07 -0700 (PDT) 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 Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mathieu.poirier@linaro.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> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mathieu.poirier@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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); } }