From patchwork Mon Jan 21 09:42:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 156190 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6177633jaa; Mon, 21 Jan 2019 01:43:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN6oDGdz7fRq16rbrD6h0wuADwlvx6OfLR1T6/ngPyhCaMzytonO/j/Wfv6cDYiS3jxjoNEZ X-Received: by 2002:a63:193:: with SMTP id 141mr27743596pgb.136.1548063785239; Mon, 21 Jan 2019 01:43:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548063785; cv=none; d=google.com; s=arc-20160816; b=onQqVDm8z4l98ua2mdFB4jLTEJc6S+9ZJD20IQPxuLTU6nE4Zxol0rdIl0U4B+Q0f3 L9Ygk1v/WQbWse7EwlRJ3qSgjKVDflhnlrk4kIxwh7NysLuY0OleWr+TJk3n7eEnbM4X Ve1GxybyPA9HaqquZ9KLdPNgFpMSXaxj0/qZjI/zE+b6o/WVYwuz3U+x0PrcUM1JT08Y KU1GtDpqXhOZDCwUrBrwdb8Ivoci2rpUs2hZDQIrUFT5LFmVWGv1Xq/dDGmZbJDIuUYQ v7kNd2fqf9/Vm0Dk+q6RJr9Uu1fZagZqGpl8gjSkW6N5IQKaiv6GlgWBAlQAzbkcgGkb yBbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=ck6DLVRueLESAEqb4AoHP+TEzN+C6zqqxI0IKduFKsg=; b=Zk0AP7EbKPAE9Ug4vDxb11pnDuV6BInyoJ0i8J2bWBg4B3mrwU/R16qgBi70fKfXr5 P8Kt8qfF4wLaVFg6m0s3m1XPsTNni/NbgGiclLIyb9BiQZlzWzojbJp0GJzGXa6tEd9q Po4AaGYfCb28ZPaapszAfxd+9KAANZVhV1q/X/HFn/ff7VCoUXjh/962fSRLd8q7fUPX PpDthn+cYli99EBANCLxruwvi/+LjZGfsbiBRd7QaXw2UKyi367YiiB+ri2BpJOdTHmc XSbaNnYjS6zyA75Sdv3TZBz7m7EuF8IyVfGedg3y42NweFb41Ie7NNitrS1Knv93KpJn TG7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="fgAsy/X1"; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 p16si12140145plr.31.2019.01.21.01.43.04; Mon, 21 Jan 2019 01:43:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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="fgAsy/X1"; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1727587AbfAUJnE (ORCPT + 15 others); Mon, 21 Jan 2019 04:43:04 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:44210 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727137AbfAUJnE (ORCPT ); Mon, 21 Jan 2019 04:43:04 -0500 Received: by mail-wr1-f65.google.com with SMTP id z5so22429069wrt.11 for ; Mon, 21 Jan 2019 01:43:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=ck6DLVRueLESAEqb4AoHP+TEzN+C6zqqxI0IKduFKsg=; b=fgAsy/X1T8FkFz6QZlONhE+x+uB651Hhgt5TQ62+Cwu9FLLUQKQRK23xxkJnhKtba/ sUpW5kRl054HPY1UgDlN0sN9WNoDilzFzG+Yzg+FMIuQ2xwxlEe33FNrwH1te+Fp7Zof CZMdN1thqAa40adQvQaPZEtMk2I2X5VRxkNK4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=ck6DLVRueLESAEqb4AoHP+TEzN+C6zqqxI0IKduFKsg=; b=Rr/v8JaWnCJQaCu122vWZQ0HBL1+a6UOn4JixHgYjKfCXdXlCXYL4TE/BWS+nFSVjm zpSa/7HL68+CTo/58I5SEBgL4o6HVmSEGsJd2UDyP216o+KRDD6M/of68nuGX/oCYsAS HjyBIkzMTgomYfN2g4F8F3Jxzj9biyJIRdvbiI+Hb8oXXqV+WmNG3Uqyc+B1uATMzEdn T+KmK/aNU/A5x0DldqG00ig+vJS/BBQX2JTMTHbyHqmex5u7SBu9+GUVX0HXk2ws9IEQ fYrGS0Ys63K6yiKaG5xvD22944guy+/2y4AY4enHMHXso/PiBgciHvAegvzpj9YqqU/q YctA== X-Gm-Message-State: AJcUukd7buhZPo067M3i/6GUyx/C3x0bBTTG8tCEvErwWx5ueJTC2qOi +lhZdQfYWvPcx6i1ppIy1saomA== X-Received: by 2002:a05:6000:11c3:: with SMTP id i3mr28676742wrx.221.1548063782484; Mon, 21 Jan 2019 01:43:02 -0800 (PST) Received: from localhost ([49.248.61.1]) by smtp.gmail.com with ESMTPSA id o5sm31176759wrw.46.2019.01.21.01.43.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Jan 2019 01:43:01 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, edubezval@gmail.com, swboyd@chromium.org, Zhang Rui , Daniel Lezcano , Viresh Kumar , linux-pm@vger.kernel.org Subject: [PATCH v1 1/2] thermal: of-thermal: Print name of device node with error Date: Mon, 21 Jan 2019 15:12:22 +0530 Message-Id: <04fc346fe98b9ada6a2bf8f18103fe2fe20240a4.1548063429.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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(-) -- 2.17.1 diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index 4bfdb4a1e47d..2df059cc07e2 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); goto free_tz; } tz->passive_delay = prop; ret = of_property_read_u32(np, "polling-delay", &prop); if (ret < 0) { - pr_err("missing polling-delay property\n"); + pr_err("%pOFn: missing polling-delay property\n", np); goto free_tz; } tz->polling_delay = prop;