From patchwork Mon Jan 14 10:21:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 155424 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3489203jaa; Mon, 14 Jan 2019 02:21:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN7pcVJmf1GFwsvrcMvdAuf9eYP6kAugm38NTgh4WL8qvVTeEySEQFxtiXfc+sTYajCgHA2m X-Received: by 2002:a62:53c5:: with SMTP id h188mr24289390pfb.190.1547461294093; Mon, 14 Jan 2019 02:21:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547461294; cv=none; d=google.com; s=arc-20160816; b=SngMAIG6lNMM+lOe/Z0OKdGV9VrCLZibIbhLQNquR/mEPGe5hAMu05aWqvCR8XBu2P +med4Ev0w8gRSj9zNMp3EILwKJEcE1vD05HGiAjP98jTOXrwb+/VVTkZfFlABS9IDdOX xq/opDHXMwZxW2L0kN3zbFz9fxa1t6dalqACH+qGUa2NLW0PQiI9fYXVsDDnePid0Spl TBFR+Rw+2/m/yMjW7ykRe8JfHI4TSZMaRPAZuCgzujCBgmL0LtH0lJq8kxlkzu5QwRqp Fzz3HnPigbS96af/LUBhNy1TXb60KijgQyFx6YIMj/72XD5DnZSNzenWpsYuCwabSl/B UNuQ== 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=9SBw2Z8hokpAYRi9yYWIqHgwrnBSoCdeIR1YxJHRWTA=; b=MDu+7EDZaiUZ3yz1sv1dB3MRr2sgUkPkv5C5CNK0j3QEpLdmFsV5fAeEj7n4CFoBp4 44vwqdnZUqM2bEIgJzRwyMBEYfiJ7NjKxC+aScl2XEMWRHBX7ddS+v0VsCSETiJ1yJGe oR9ZtWczw6YyIyTt721q4VTQBwAi5JrUVRln/dknWftDarfZhymnimYCFYteymLhsPKr D63M4CMnud1L/7DPH6zKZ/ELnt3oCBS0d+/AvSdeVjMsnKuv+aB3ac9owVzr182EYwrh MZUOhWeEYyqqhZRIQOGwXoZ3sti1d3yLngCytcyCy27hLI7JVAPjCsdMa4YtqFrhVouz x1OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RFTdFL04; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 q14si27759pgf.47.2019.01.14.02.21.33; Mon, 14 Jan 2019 02:21:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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=RFTdFL04; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1726733AbfANKVd (ORCPT + 11 others); Mon, 14 Jan 2019 05:21:33 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:51739 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726730AbfANKVc (ORCPT ); Mon, 14 Jan 2019 05:21:32 -0500 Received: by mail-wm1-f68.google.com with SMTP id b11so8302122wmj.1 for ; Mon, 14 Jan 2019 02:21:31 -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=9SBw2Z8hokpAYRi9yYWIqHgwrnBSoCdeIR1YxJHRWTA=; b=RFTdFL04O0QYIhX0JBnUjQGAz3APxexoATMRsqvN4V8qZZgP+ccNCDl2usSW0Yp29y Nb5EVStf6xppuRlyc1Jov52MVq+vpMsi7C9J2BqcCfgcFJYb2kRtynQc1LyfZDLD/C0V bwJOnezzKErTQq8dgddkCsY5zpP8pCyaO5phY= 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=9SBw2Z8hokpAYRi9yYWIqHgwrnBSoCdeIR1YxJHRWTA=; b=S/hWzqWIx9/lQFJEYmjKr6InbgvegQKh9j+qojuirMEKavedlIDmoLjhxdzvn2iDxQ 2tt3f61B8MtYWKUTYC4uZ+zC86Kn0dhzuEcxW489ZchazacGhWZ0G7XIBZMbZYaRph72 WK+k2NFZr46Yq9JTlgKZ7b4zp2Mwtb9FYYeq+d+wB66SGbXY6LvLx+mlvwBr8vD81lmN YKBb1qtu/Dkqdm4vycOLTe+Tx1iWty5Fk+FZcecf90bYV0i5A0Kv3rTBxOdS8yVjHanu QJxvj/0dvHkDOBY0bta0Jjk1TFYGrV52TX196eHPMbPkDyor93R7HI7GnPMIj0CIlzhP 7upw== X-Gm-Message-State: AJcUukeZAlNaf/EztqetFIFdny5SbCBoLN7Bsj8waYe2m0TptH8/tsdb QcE3uMGmj96U4R1ErJCrXwAmiA== X-Received: by 2002:a7b:c5cc:: with SMTP id n12mr11292507wmk.149.1547461291120; Mon, 14 Jan 2019 02:21:31 -0800 (PST) Received: from localhost ([49.248.81.155]) by smtp.gmail.com with ESMTPSA id x81sm27364850wmg.17.2019.01.14.02.21.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 02:21:30 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org 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, swboyd@chromium.org, dianders@chromium.org, mka@chromium.org, Zhang Rui , Daniel Lezcano , linux-pm@vger.kernel.org (open list:THERMAL) Subject: [PATCH v2 2/9] drivers: thermal: of-thermal: Print name of device node with error Date: Mon, 14 Jan 2019 15:51:04 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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..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); 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->name); goto free_tz; } tz->polling_delay = prop;