Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp331715ybb; Wed, 1 Apr 2020 00:30:15 -0700 (PDT) X-Google-Smtp-Source: APiQypKQv+XRowZHJLvbJv2ITUfO6uvPyIbGZ/x5cCbpv3rHtPgxFwVr3PsLCaDQnhhTWrkdYWxp X-Received: by 2002:aca:57d6:: with SMTP id l205mr1785074oib.20.1585726214964; Wed, 01 Apr 2020 00:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585726214; cv=none; d=google.com; s=arc-20160816; b=zzTfXu1OB9Sp5W18lvzjFUmCmHjVwqqx7SgIEbdDJujc8QNuKJzzJd4OD83GVQYxCG Jq1Z1eYSScQy+4/EVLstPNZiAvU3eVWQlaG2UG7txZ++zjSVo7nU/EmF4rpVVzWsq38f /lx3hdtCqXGS3LRAGk1fjm42GSKMUfeh1DESK/y6pW0kffVDIg+HM/wR4wIDwrfIX4q5 ytd/QXDoEeQVAsfaxvMpxr99t9F6lMB3TNPxLF6Sq93PTfUSIyvAWEyXzTtLoIm2osLC YopWgQgEtvX5RA373p/NIE8/2nHUn8xIPGWzKcqDBa+hbsQo1bxm3ILtxVKUEa84iQ8l XH1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=vH4zl4nACC0vx6Gd9HKwI0ju9vIaCIbsOi+VmuYRQkc=; b=R+pvzgOyuJ7vTjHHIWQ+Eyicz7BsR8+J/4jxldralgEpFCqQJht5mc7CW6CbljQPxQ o7/M53VfiM+oJ+c6h+zo65O30lw8JEbkEIbY5LVuofyAb3gk9rupZMqXcS3gyZ7w1POU qvQILlk8m7TMzQp+VlZCaWJHfekITdRUuKRf8a8GKEEaSm8flQEXi1vvaVyvHxfIimOC GMwcqwxWQGlDMlomHREeP2CV4phZrIi0VjcLPW0DTYne9N6jWhT2g0sxWI5INybu5awe 7160G1EWac1whapEa7GF1JVMTknhMdZ6meG1tcRTH9MJtqm0Tb26CG9+rV4b8m4y0GlD CreQ== 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 l19si459477otp.119.2020.04.01.00.30.01; Wed, 01 Apr 2020 00:30:14 -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 S1731895AbgDAH3k (ORCPT + 99 others); Wed, 1 Apr 2020 03:29:40 -0400 Received: from foss.arm.com ([217.140.110.172]:44370 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731680AbgDAH3k (ORCPT ); Wed, 1 Apr 2020 03:29:40 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8B82A31B; Wed, 1 Apr 2020 00:29:39 -0700 (PDT) Received: from [10.37.12.63] (unknown [10.37.12.63]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EB4DD3F52E; Wed, 1 Apr 2020 00:33:46 -0700 (PDT) Subject: Re: [PATCH 2/2] thermal: core: Remove pointless debug traces To: Daniel Lezcano Cc: Zhang Rui , Amit Kucheria , "open list:THERMAL" , open list References: <20200331165449.30355-1-daniel.lezcano@linaro.org> <20200331165449.30355-2-daniel.lezcano@linaro.org> From: Lukasz Luba Message-ID: <809b3d48-b8a9-75e6-aafc-0999e78611e2@arm.com> Date: Wed, 1 Apr 2020 08:29:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20200331165449.30355-2-daniel.lezcano@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, On 3/31/20 5:54 PM, Daniel Lezcano wrote: > The last temperature and the current temperature are show via a > dev_debug. The line before, those temperature are also traced. > > It is pointless to duplicate the traces for the temperatures, > remove the dev_dbg traces. > > Signed-off-by: Daniel Lezcano > --- > drivers/thermal/thermal_core.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c > index 9a321dc548c8..c06550930979 100644 > --- a/drivers/thermal/thermal_core.c > +++ b/drivers/thermal/thermal_core.c > @@ -447,12 +447,6 @@ static void update_temperature(struct thermal_zone_device *tz) > mutex_unlock(&tz->lock); > > trace_thermal_temperature(tz); > - if (tz->last_temperature == THERMAL_TEMP_INVALID) > - dev_dbg(&tz->device, "last_temperature N/A, current_temperature=%d\n", > - tz->temperature); > - else > - dev_dbg(&tz->device, "last_temperature=%d, current_temperature=%d\n", > - tz->last_temperature, tz->temperature); > } > > static void thermal_zone_device_init(struct thermal_zone_device *tz) > This prints really deserve to be removed. Reviewed-by: Lukasz Luba Regards, Lukasz