Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4135383imu; Mon, 14 Jan 2019 15:55:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN7aMnufrVfwBnTPE6FKHsVUaxaSxQ9kdNDrafvHKvSpxmNSsvIPZknDbr7tfZ97TXVSwXBt X-Received: by 2002:a17:902:9f93:: with SMTP id g19mr1044808plq.195.1547510151705; Mon, 14 Jan 2019 15:55:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547510151; cv=none; d=google.com; s=arc-20160816; b=NCowFz66aKCe7hHdQbiR0euGXOrU3d8Ovciv6tnb4sBeH8k1mo4VpErhbHy8Odfpis kF3XRTqhmrK/2TR8SZzFTq/aJ7iHVub0HLypxDo146unV4YsTlsU3mSUZconyvml2lzt 7UQIVJcrvTjO/kswnd8LFl0FgnkdFs+yahvutBQENkcM88OgRNR7QbrLis60aeFxPdEV XU9zGDp863OtaGit+/JHCHAPGbyF4DX2sx8qOEuNkmZ/jhIP96qe8zQbIL11bXqs3hGp p5M3oV+IB3JtKWfttGGDgjiB7qEFznYnhMR+slAAy8WDrjXo0f0dV3l726KXkglcenur FXMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:from:message-id:to:cc:references :in-reply-to:user-agent:subject:content-transfer-encoding :mime-version:dkim-signature; bh=2inEx6PBVZDRPvhu1qW3je2zJJyQ7ROpIDDNj32fzS0=; b=Eq4hPTA7XDC3BjQZqshP6rSBuVIIQpeTMgTj49y09QlQb1dwIMT3qFMteqLVwhPvPy kxFjpnZZbxm1TsKL4JMLcWN6pubN/Hv08CHvkicwfrBAIuvGX97+9pqmlO2DU6M5Jx1j N7Zs8hXoJXwNYGwufj5p1BUEmQTey0GIIN/H/jjoSXDoro87ZxhrWui49PAXHIFiNyLF yrM3cRjHb34JmTdhRzTo/fcpeHd4dlAuJEmnw1jNLxBVEG76nklMEiwqRxnYIeOAsZvA zmmBs6vU+BqqUqzLOh6IksfT3zYa6186ZD7dMW5GUeYXUJZaLc+FT390hNodZFJVSLNY YinQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mwVgPhPv; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10si1510030pgw.294.2019.01.14.15.55.36; Mon, 14 Jan 2019 15:55:51 -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=@chromium.org header.s=google header.b=mwVgPhPv; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727241AbfANXyf (ORCPT + 99 others); Mon, 14 Jan 2019 18:54:35 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:39018 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727100AbfANXyf (ORCPT ); Mon, 14 Jan 2019 18:54:35 -0500 Received: by mail-pl1-f195.google.com with SMTP id 101so373197pld.6 for ; Mon, 14 Jan 2019 15:54:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:subject:user-agent :in-reply-to:references:cc:to:message-id:from:date; bh=2inEx6PBVZDRPvhu1qW3je2zJJyQ7ROpIDDNj32fzS0=; b=mwVgPhPvAiZvRRMu4sCdk/fR55EY3x98X13/Hw5ksbz9F3IMv0tpP70dgJMavgbiC+ xtazdlJAg68SbrWakgFFwNy/9v0FcOj9ecOM5WLRHubjeAZZm2fKf8L0xJntsSzT4Rkb iT7W+vqsHXlQFhyFuI0ToqUti7ciGHfNYhOAY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding:subject :user-agent:in-reply-to:references:cc:to:message-id:from:date; bh=2inEx6PBVZDRPvhu1qW3je2zJJyQ7ROpIDDNj32fzS0=; b=ZEVX9l5z9wA9/0lNgiYu+8pMCcMhKTXb5J0QQIXApkpCQ49dfQ+OV9weIxtuKOc8WR TkYAlcHlYwkm0aw+TczyRBykj6jsttomXqJcVo0IuS3ZbASFV+qqCZEnnWxTPEfJMpv7 Te21aU9qs1pO1NhEmvBu+7qCtG0JhmssDK3nyatd9q8bcYnZwVn6W8fhwENKGIb9WBo2 mpcucNPC/DyS8IJ3NBkXi8Q/DcB81FjkGqbmXZ8Ng/ol/IA+v84mSd3/55/XamLFpcG5 00d4ITRYCLri9dB3liShzXuRL7mW3GjzONSmS+nMZP8jolK3JOgHkUejiz0VvaoAgrC3 nCGw== X-Gm-Message-State: AJcUukdJAAL10kCUWYoo7MjYS1d9ceNu2tvoetJwy6O/6YZyySHNkObB xrq0NA8M9+NFWZDigdLPj/IKWQ== X-Received: by 2002:a17:902:9b87:: with SMTP id y7mr1089289plp.336.1547510074575; Mon, 14 Jan 2019 15:54:34 -0800 (PST) Received: from localhost ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id y71sm2368143pfi.123.2019.01.14.15.54.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 15:54:33 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH v2 2/9] drivers: thermal: of-thermal: Print name of device node with error User-Agent: alot/0.8 In-Reply-To: References: Cc: linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, viresh.kumar@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, tdas@codeaurora.org, dianders@chromium.org, mka@chromium.org, Zhang Rui , Daniel Lezcano , linux-pm@vger.kernel.org To: Amit Kucheria , linux-kernel@vger.kernel.org Message-ID: <154751007298.169631.16954120258961808334@swboyd.mtv.corp.google.com> From: Stephen Boyd Date: Mon, 14 Jan 2019 15:54:32 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Amit Kucheria (2019-01-14 02:21:04) > Make it easier to debug devicetree definition in case of errors. >=20 > Signed-off-by: Amit Kucheria > --- > drivers/thermal/of-thermal.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > 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) > =20 > ret =3D 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.