Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1798000imu; Thu, 17 Jan 2019 03:29:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN6nA9p4lpQtBn2xSpUvbfClHUmLnTNdKcmWq2QZ3SiDoyRmtAo2wbz2JZ9wy7d3Qa+yb4h6 X-Received: by 2002:a17:902:6acc:: with SMTP id i12mr14313373plt.148.1547724577421; Thu, 17 Jan 2019 03:29:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547724577; cv=none; d=google.com; s=arc-20160816; b=Y8BcnXgXmVgKEFbN+LI/ezaIl3slCN7uagln58pxtSTiJaxaJmHK55fmMbL/lh9zed TsmkoRBIW6PQlCkyCf3U6HBYZcXt80yBx+/hiCV1apMThP+F4hYjA2ZIaBT1rpTcFxsl O4W0I900U8IjoaYO1VVRDHiX9KDaGFIe4rjVqQM5u0u6XxLEDoUtqItwLUR9Euea+4ec uCQOAQ0p58VkOP6k7LoUG7b8BgUp7XEUWCpFxcCXDDFkFnO6qrCVYWJKfITZVH9egTqe QPmOckKNR4IRUOcy4Qbn4rug7/q2xhTut6TE9eGNLQJZgIV37o84RreFBF9cpjk2641Y q6Kg== 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=4TKZNjcxuP4sO2JiRTeBwn324kLziSG+kppWjp5xzaA=; b=WDpnXSRwwUKPO6ptx9xMSA2/Gzv4f77DgzwG0/29HzmJck5EgWvdmT6vYraPzvUi6/ +VboRhhb/TTbX157KnhZFtejZVXt/mBW6ZGc5nBrL7lbHKQ4ynAi2Ok2EKzigHXklq5T XpQmBLF7oPyUI0y9Gfh/CKZFm0oxNLs4B0Q04fcPUFdr4wNLuiqLSzS3UQjNKsuTz6yc zjHM5Huiqeay1D0LItOGDUe1DGCtL0ZIs5aNwnOeAtme44fr8MP2scHp4tXSZ0I8cCz3 fIeP3ktkZhREViWL8LUFVk7JTgkAKCy1Og03xIIfeuyza4zJ4/jtODusM1ahSqg3obsf x1Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Bss3R4qH; 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 v13si1352537pgn.355.2019.01.17.03.29.17; Thu, 17 Jan 2019 03:29:37 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Bss3R4qH; 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 S1729714AbfAQF5e (ORCPT + 99 others); Thu, 17 Jan 2019 00:57:34 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:47043 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727251AbfAQF5e (ORCPT ); Thu, 17 Jan 2019 00:57:34 -0500 Received: by mail-pf1-f193.google.com with SMTP id c73so4256965pfe.13 for ; Wed, 16 Jan 2019 21:57:33 -0800 (PST) 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=4TKZNjcxuP4sO2JiRTeBwn324kLziSG+kppWjp5xzaA=; b=Bss3R4qHvdznle1Mc0OQ2GOypH6c9UHi0A7XematgpUs3SsnqMhtwssmKzh37fEN7E TAgfD35w6SEjQQdHksbYmT1PwFo92zK6oP6GRBFROgzkm8434bwkFxJQP86Eu+De/rak z534Kr4qyBcCyIRJnIX01nH1eVUNZUTGseQ9g= 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=4TKZNjcxuP4sO2JiRTeBwn324kLziSG+kppWjp5xzaA=; b=Q00m91AdHjIKa9zrIi1u6bziPdkKudnhh+PGiJzMB/o88450CiEqRoP503fU4sDDUL as0vBF6OGLDaQDAAvsa3sRMF6H4wWhxYyIZwOeIylBzR6lCpOuz1PHEDNgoEIPVpHEzB Y0VS3NTR9FHwILh9Lg4G1UxSpjrDlisOYTzl4CcpA0bkc9KQk0FMiVC8bYw0U9hMblpU lEIHcfR6NccEGfJPnTQt75vPaUddYgBn7bCuUgz/mo5GuOUIM0wQsyFTi2reCAN+xSQb 0trev6qzPWAOUBNqxeSt5DfnYDeTsLaFXHhSSsCYKszOSXRZU1llteNPxtz4TT5YBjb5 yKIw== X-Gm-Message-State: AJcUukeyKsrY9iCtCMuCD6akjQ0spL5wfKeHUQBniBLaxuZMgn8JVKi6 TWlEAHYQCwOnfmKypEJoraOMng== X-Received: by 2002:a62:cd44:: with SMTP id o65mr13579373pfg.222.1547704653293; Wed, 16 Jan 2019 21:57:33 -0800 (PST) Received: from localhost ([122.172.102.63]) by smtp.gmail.com with ESMTPSA id o66sm1342009pgo.75.2019.01.16.21.57.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jan 2019 21:57:32 -0800 (PST) Date: Thu, 17 Jan 2019 11:27:30 +0530 From: Viresh Kumar To: Amit Kucheria Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, tdas@codeaurora.org, swboyd@chromium.org, dianders@chromium.org, mka@chromium.org, Javi Merino , Zhang Rui , Daniel Lezcano , "open list:THERMAL/CPU_COOLING" Subject: Re: [PATCH v2 9/9] thermal: cpu_cooling: Clarify error message Message-ID: <20190117055730.7hxe37ngcubo6htw@vireshk-i7> References: <2de2d178380525191d99d6c3619ad8c45efdbab4.1547458732.git.amit.kucheria@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2de2d178380525191d99d6c3619ad8c45efdbab4.1547458732.git.amit.kucheria@linaro.org> User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14-01-19, 15:51, Amit Kucheria wrote: > Make it clear that it is a failure if the cpufreq driver was unable to > register as a cooling device. Makes it easier to find in logs and > grepping for words like fail, err, warn. > > Signed-off-by: Amit Kucheria > --- > drivers/thermal/cpu_cooling.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c > index dfd23245f778..6fff16113628 100644 > --- a/drivers/thermal/cpu_cooling.c > +++ b/drivers/thermal/cpu_cooling.c > @@ -774,7 +774,7 @@ of_cpufreq_cooling_register(struct cpufreq_policy *policy) > > cdev = __cpufreq_cooling_register(np, policy, capacitance); > if (IS_ERR(cdev)) { > - pr_err("cpu_cooling: cpu%d is not running as cooling device: %ld\n", > + pr_err("cpu_cooling: cpu%d failed to register as cooling device: %ld\n", > policy->cpu, PTR_ERR(cdev)); > cdev = NULL; > } Always keep such cleanup patches at the top, so the maintainers can pick them up easily even if the entire series doesn't get in. Acked-by: Viresh Kumar -- viresh