Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6023594imu; Mon, 21 Jan 2019 01:41:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN722VZih3xf6wbUcQk4CgDpCBpVoAlEKqJ0FLRRW2UsGwJEfd/Fs9aYMHjPH945YMoLa1me X-Received: by 2002:a63:4a0a:: with SMTP id x10mr27473164pga.237.1548063712138; Mon, 21 Jan 2019 01:41:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548063712; cv=none; d=google.com; s=arc-20160816; b=qNiqEmMj1voi5m2wlcXaVQkyvohNe37ZvkAPkTki1x2AB29Y3V5ardZO923z2PdJPd e/mc4B0Ky9OzAkQrRNJJ/DRkyIlkDmbLr7AvJ0d7qQY8RGsvC4+doQr4P6Q6lXFI3iNe Bi6V03eUREtYFe/v8Aq/FiaIG/PjM1v6mcGWIbh8bRLiSDyL08r1NXuQOxnlQRWtpAE7 iLG+x+jMdwDPpJJQUF7cm7rfZEFzuqvsOEM2I5TXL4FTszgJTz9ETjAY1z8FIYYVl+a2 lB/PPymp00ngilxsluh+UHhZh9jEzOX9+mlRyiNhLge7pAPc9ghlnU3S1f3HTPqt3GST RGng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=cSWR7w0OVZPwACykRLjCu6ZeRa5KERexPDfjFokmknQ=; b=bGWCgLB+QtPtQJ+EdJZLA1ZkBJPf6EV5WkkoOM+yOt4snGV6j+jqnKIwRJf7QmNH8h thR9PreDmVKRr99qs9/EombBN6WwDhl2g3KPUydFaRD25oXqlk8FNvqJp7BREx/ioAXp MMBovBAGtqVJRkmMRYI0ZwDPEarImRSzzUfcH4bsMJVBZV0a1St0Bd+xone97k5QAiHj B6z03BaW/xwpFtH8ESCS45IxKQmJMrxpMZ2+Sm8o1ZG9+4ktMZz89L68iIxqqZX6e0q9 Raww/T+S/gpFA9UxCN09KW90OltZnj5nNOwEev37H7oHgrGDJyEz4j+Hf7DsiwesW/9P idEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gdHGICxX; 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 h1si11674463plt.44.2019.01.21.01.41.37; Mon, 21 Jan 2019 01:41:52 -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=gdHGICxX; 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 S1727688AbfAUJkK (ORCPT + 99 others); Mon, 21 Jan 2019 04:40:10 -0500 Received: from mail-ua1-f66.google.com ([209.85.222.66]:44171 "EHLO mail-ua1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727190AbfAUJkK (ORCPT ); Mon, 21 Jan 2019 04:40:10 -0500 Received: by mail-ua1-f66.google.com with SMTP id d19so6686620uaq.11 for ; Mon, 21 Jan 2019 01:40:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cSWR7w0OVZPwACykRLjCu6ZeRa5KERexPDfjFokmknQ=; b=gdHGICxXtvHw//Tnc0iUbv6j1DC/hoX7CpSEUlAHcu2ApypfGg766SvCmMHUY7QTpg v2zkHh8hIJ2rIjlEIfWg8BjZXvgj2Ih0+7whgdlyBkep9CxHM3JdXy1RkrM1c4jqf7Gq 0iVHctLpSnVN1DLPG0sfc/NxMoiArDXjxIQZ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cSWR7w0OVZPwACykRLjCu6ZeRa5KERexPDfjFokmknQ=; b=F1KR+oEP8QPU7A6UTOasd+BFL7oScOPonFpjXCE/IhXF7oAvdcl1FXWOi+xN78kwZU HvhmOlkVOBdgwyeFg9/B/3ii0kjCjTHmmwIU72+G/2gsFUK8DkzUSNS8EIDNYtdf+40t /ga5Eq223zSlzOIK0p0iC4T3pTrycfITh/eUFfmZckMGGstPU6/24kONo8MkvEBMIRkN +rptO11gxei5THQbJnnFmdZSQ90eiobpI9aMYdfQdVbUMJ5MjFuQwjRKDWTTACrxjspD DXSlAQa7SZAr1vZ7tU/lTLIvsJbLsnT2Zt5vAy8KnXRFAvDZiCu2XSwHaUUNZOYUZnZn x2Fw== X-Gm-Message-State: AJcUukc6SQ4ppW8Xofb+T/OCUhKwwUIxK8piIJKvM0O5vkuuHG6rvOFH sEMvKioP8ljABugVvTehPAdtyqV3vMmJq+50nOqvJg== X-Received: by 2002:ab0:6446:: with SMTP id j6mr11473643uap.2.1548063609249; Mon, 21 Jan 2019 01:40:09 -0800 (PST) MIME-Version: 1.0 References: <154751007298.169631.16954120258961808334@swboyd.mtv.corp.google.com> In-Reply-To: <154751007298.169631.16954120258961808334@swboyd.mtv.corp.google.com> From: Amit Kucheria Date: Mon, 21 Jan 2019 15:09:58 +0530 Message-ID: Subject: Re: [PATCH v2 2/9] drivers: thermal: of-thermal: Print name of device node with error To: Stephen Boyd Cc: LKML , linux-arm-msm , Bjorn Andersson , Viresh Kumar , Eduardo Valentin , Andy Gross , Taniya Das , Douglas Anderson , Matthias Kaehlcke , Zhang Rui , Daniel Lezcano , Linux PM list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 15, 2019 at 5:24 AM Stephen Boyd wrote: > > Quoting Amit Kucheria (2019-01-14 02:21:04) > > Make it easier to debug devicetree definition in case of errors. > > > > Signed-off-by: Amit Kucheria > > --- > > drivers/thermal/of-thermal.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c > > index 4bfdb4a1e47d..08c3ccbdacf8 100644 > > --- a/drivers/thermal/of-thermal.c > > +++ b/drivers/thermal/of-thermal.c > > @@ -867,14 +867,14 @@ __init *thermal_of_build_thermal_zone(struct device_node *np) > > > > ret = of_property_read_u32(np, "polling-delay-passive", &prop); > > if (ret < 0) { > > - pr_err("missing polling-delay-passive property\n"); > > + pr_err("%pOFn: missing polling-delay-passive property\n", np->name); > > Not sure you've triggered this code path because it's an error, but I'd > expect it to just be np, not np->name here. It's too bad the compiler > can't catch this. Not sure what happened here in the refactor before sending but good catch. Fixed now. Thanks, Amit