Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2352304ybl; Thu, 29 Aug 2019 07:09:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLyQ4NH2Csc94Y8Zw6tWVTCestTj14dbTZJ7NTXcWgW61g0G74jmTME8bsGDWrDBZhb2/c X-Received: by 2002:a63:8ac4:: with SMTP id y187mr8698659pgd.412.1567087755814; Thu, 29 Aug 2019 07:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567087755; cv=none; d=google.com; s=arc-20160816; b=Yh48fjote3WX3zgXo6RV6DoRk5poMMVGPGkshfVs+tH6vIsO2M72RYV8tgmTaRF2LK oqyXPxBUxMGBhUIfeHFTSRYeYMlR/8bZEmf8u+wvq0prfpAHgF47DtZ7H+EC/Yd2Q4C7 SmXAPoCKXWIoIVSU5kEbw7wDALJq5o0qeEGhrp2Ad1+3ngoFXJsm9kS/JkR4+W72Hdit y9G/pLHmb0ab8LV9SANEO2bUtRLbv5dR7uGrA9pzkPjoFTcu97xBAWDUUnWBt/pSi8ZA goI8s66pAR5j5OwITRbrenxWb+Y05KZmjNm6RdhJsyF48//DR8I1An0P+nxcPsmeQo83 TVIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5GyUYiNK1pxGFGVMqeQUMFAAek9A8tVckoOeF4bV32Q=; b=alfgVinehRyxpN6K+2TZWkh2v3Hwa8e635S23x1Vp9XcW//4WGVPIWwT/ekISwGHOa VvVIUquvP7NorTPAPsX7CAtk1OgnImouaKX+hMuu2QhdFrCnI0yWHphO2IehqVmeIdwH h0f6KnhkVRC51Na4nWr7s6L+UKLPlUekZqbPfZkoKf7+qjiV+heDE0y4+so9/f3cNmiB mDhybOOtYjHa6kGQwZHhRsv9UI0deT6v8LsCKVaGRULhjb8Rf6HznieXlY94ghE9bnzM xl603aU7qaTNPSlCgDbs3f3FvL401uXnW77TGwpjGjygwj9m97hVI9d37HlzYtPuBWSw NcIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XA1DOwiB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q32si2250699pjc.2.2019.08.29.07.08.57; Thu, 29 Aug 2019 07:09:15 -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; dkim=pass header.i=@linaro.org header.s=google header.b=XA1DOwiB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728132AbfH2OFF (ORCPT + 99 others); Thu, 29 Aug 2019 10:05:05 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:34334 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728081AbfH2OFE (ORCPT ); Thu, 29 Aug 2019 10:05:04 -0400 Received: by mail-wr1-f65.google.com with SMTP id s18so3604124wrn.1 for ; Thu, 29 Aug 2019 07:05:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5GyUYiNK1pxGFGVMqeQUMFAAek9A8tVckoOeF4bV32Q=; b=XA1DOwiB8cokG0MO/G4Rhedb2oX3Gvdu09OGfOjf37dcM1zTrBpBWcA2Zriw9sIzcJ 2aZUM0TChUUUinQsSurkmbpcIvU2801OMN4B0kVQdDGLaBmRcYvVFrrgb/W0YXAswDJj kmkrQtdG+4LW36A+5t1k8JhsGlKzoWRWuzVJzrIgu1/WWyTz4Uu2uuR9SAyAO77iOuJ3 1ab4wic+E+nfJZVUV4nc3Bo5CI3t6of2c3W1Hol38mjFEtpwtjT9dboa59eDpploLep3 3fX0eFRD0rssbf8ZrcOu9oaRd6pKTDA/b5gRiCbk0zVrokgV/nsLBpwI2IYMjMYpYsxQ uW+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5GyUYiNK1pxGFGVMqeQUMFAAek9A8tVckoOeF4bV32Q=; b=sXvbEktp/YE9vLSuCX+bZkwiAO2y282MImNmTngtQhvXHcun+xM7MpBgaagqqYKnwg smyekcaW4kYRhndTV/Oo7GTfFadN8pwFzlJed7fvczlUDUq0gMvaZaYlYRoVnAWwVjPO w/SwlC4sG0GmZzZMOjHGkPVUmEI7ifuRLDqvvJcDGB2kz9lsu+hLAnfv8GGUFDqWlsTl Gg37GTUb9ZvsqHdMR/tpoWyFnKGIRVoBwXU0n8dG+tJtDQTrgtwCXSb77BBrR5gUzmTf IRycHh7bTnnj5RBb3OIuEp2AyflS6Mo6pv4mnccDE1/UX8OSbS22UjbcUaUPjPMGu1J+ y2aQ== X-Gm-Message-State: APjAAAUpV8HxMLz+dNs315NFwf/eGOMHeWqQPGf8aSXwfixAnskISics G+njPXG5MkvvgLPV8VqavyDGbQ== X-Received: by 2002:adf:9e09:: with SMTP id u9mr11803588wre.169.1567087502052; Thu, 29 Aug 2019 07:05:02 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id k9sm3704025wrq.15.2019.08.29.07.05.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2019 07:05:01 -0700 (PDT) Date: Thu, 29 Aug 2019 15:04:59 +0100 From: Daniel Thompson To: Amit Kucheria Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, agross@kernel.org, sboyd@kernel.org, masneyb@onstation.org, marc.w.gonzalez@free.fr, Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui , linux-pm@vger.kernel.org Subject: Re: [PATCH v2 03/15] drivers: thermal: tsens: Add __func__ identifier to debug statements Message-ID: <20190829140459.szauzhennltrwvg4@holly.lan> References: <93fa782bde9c66845993ff883532b3f1f02d99e4.1566907161.git.amit.kucheria@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <93fa782bde9c66845993ff883532b3f1f02d99e4.1566907161.git.amit.kucheria@linaro.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 27, 2019 at 05:43:59PM +0530, Amit Kucheria wrote: > Printing the function name when enabling debugging makes logs easier to > read. > > Signed-off-by: Amit Kucheria > Reviewed-by: Stephen Boyd > Reviewed-by: Daniel Lezcano This should need to be manually added at each call site; it is already built into the logging system (the f flag for dynamic debug)? Daniel. > --- > drivers/thermal/qcom/tsens-common.c | 8 ++++---- > drivers/thermal/qcom/tsens.c | 6 +++--- > 2 files changed, 7 insertions(+), 7 deletions(-) > > diff --git a/drivers/thermal/qcom/tsens-common.c b/drivers/thermal/qcom/tsens-common.c > index c037bdf92c663..7437bfe196e50 100644 > --- a/drivers/thermal/qcom/tsens-common.c > +++ b/drivers/thermal/qcom/tsens-common.c > @@ -42,8 +42,8 @@ void compute_intercept_slope(struct tsens_priv *priv, u32 *p1, > > for (i = 0; i < priv->num_sensors; i++) { > dev_dbg(priv->dev, > - "sensor%d - data_point1:%#x data_point2:%#x\n", > - i, p1[i], p2[i]); > + "%s: sensor%d - data_point1:%#x data_point2:%#x\n", > + __func__, i, p1[i], p2[i]); > > priv->sensor[i].slope = SLOPE_DEFAULT; > if (mode == TWO_PT_CALIB) { > @@ -60,7 +60,7 @@ void compute_intercept_slope(struct tsens_priv *priv, u32 *p1, > priv->sensor[i].offset = (p1[i] * SLOPE_FACTOR) - > (CAL_DEGC_PT1 * > priv->sensor[i].slope); > - dev_dbg(priv->dev, "offset:%d\n", priv->sensor[i].offset); > + dev_dbg(priv->dev, "%s: offset:%d\n", __func__, priv->sensor[i].offset); > } > } > > @@ -209,7 +209,7 @@ int __init init_common(struct tsens_priv *priv) > if (ret) > goto err_put_device; > if (!enabled) { > - dev_err(dev, "tsens device is not enabled\n"); > + dev_err(dev, "%s: device not enabled\n", __func__); > ret = -ENODEV; > goto err_put_device; > } > diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c > index 542a7f8c3d962..06c6bbd69a1a7 100644 > --- a/drivers/thermal/qcom/tsens.c > +++ b/drivers/thermal/qcom/tsens.c > @@ -127,7 +127,7 @@ static int tsens_probe(struct platform_device *pdev) > of_property_read_u32(np, "#qcom,sensors", &num_sensors); > > if (num_sensors <= 0) { > - dev_err(dev, "invalid number of sensors\n"); > + dev_err(dev, "%s: invalid number of sensors\n", __func__); > return -EINVAL; > } > > @@ -156,7 +156,7 @@ static int tsens_probe(struct platform_device *pdev) > > ret = priv->ops->init(priv); > if (ret < 0) { > - dev_err(dev, "tsens init failed\n"); > + dev_err(dev, "%s: init failed\n", __func__); > return ret; > } > > @@ -164,7 +164,7 @@ static int tsens_probe(struct platform_device *pdev) > ret = priv->ops->calibrate(priv); > if (ret < 0) { > if (ret != -EPROBE_DEFER) > - dev_err(dev, "tsens calibration failed\n"); > + dev_err(dev, "%s: calibration failed\n", __func__); > return ret; > } > } > -- > 2.17.1 >