Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp45047imm; Thu, 30 Aug 2018 07:59:43 -0700 (PDT) X-Google-Smtp-Source: ANB0VdawhryDLc2s5krrOYTeKaYdNJmyYkAE6+PjkLoscR14gS6T3IjZUyuH4R2eA0UWv9PbA84O X-Received: by 2002:a62:2483:: with SMTP id k3-v6mr11008717pfk.195.1535641183682; Thu, 30 Aug 2018 07:59:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535641183; cv=none; d=google.com; s=arc-20160816; b=lvNRqdE2axK1Y7nM7c/GqmC4qK0yJ1DMS3feUrO3OGVdJ/tWBkZSfpku7T82qpB6cM BcKetm+ZIKFWvgFRtNkUTaojeo2oUtr5mz7LHElemcD+BUmisYkniWXDBKKPRy6xFy4r /ddSuyBmaA6b1YCFJM5gMNdYQNuX6YMBGW3LiP3r+OW4JX0dpl990Zg/nRDwzDO7xcXu Lj0CU6Dx6puERMH/87x+DWUJD+GVw2rzKzNMv7e8eLuYsWh1ltXI0AnPNXcVx2x9Ckyv r1ntuBAOHa4voVrRuJy4TyfoE/2k2l1DD1Ee+M5xaYITwgeoBSo1Z2brolei4V6c7QZ4 ZNTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=S7iBMrWUJ/4LWOFfIG1r3l7V367Fmj95PzL89YpDbeA=; b=tE4fpRe5zaK5rltiSTTLHoTTobuq+bu5isQgxRgUdBu7zl9HBunS5+JWW+FAvAGQkr 9UsfDAfuX5xp+ifvaf7Tx9wAbkTsIUxvXQcXwosAwlzWNP3HZhRewECv9nNnVqAEif+n oKtCgJxaRgoHib0qyiz9ZHe+4+eSJzvLzzrc7Vk1PpobvDkWONg2fMowiCuCBW9wNz5u BtqT9Lw0ED1m7kx5kCzi9EyawWvKd2d/bVFigzwFr+tik3p/MHHAECfFjnFFGBKBTOi+ rbCNYTu/VROQzR2LonUzL37YH9AaAHaGfEhxReGP42RAnFX3jrz2C1tPCtv0YgWnmPNd j7lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g0s04mg5; 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 h62-v6si7030071pge.298.2018.08.30.07.59.29; Thu, 30 Aug 2018 07:59:43 -0700 (PDT) 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=g0s04mg5; 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 S1729443AbeH3TAx (ORCPT + 99 others); Thu, 30 Aug 2018 15:00:53 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:36854 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728654AbeH3TAw (ORCPT ); Thu, 30 Aug 2018 15:00:52 -0400 Received: by mail-wr1-f66.google.com with SMTP id m27-v6so8375639wrf.3 for ; Thu, 30 Aug 2018 07:58:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=S7iBMrWUJ/4LWOFfIG1r3l7V367Fmj95PzL89YpDbeA=; b=g0s04mg5BhDaIrt8o0X8hneuGCimqfG/p2vp2Bm8mxJG1J/08EscNZ6zOrBNevEm2x /JO8VjMPHQcv49SAnpPY8rCPUJ+8+dUWqiR/Qk0G9RUtQOOKPt8d4Rr0A4Cm5W/5Bhvd 3UMge7Sudm9rJth9rxkPppzcLwyx+1oxrH8jg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=S7iBMrWUJ/4LWOFfIG1r3l7V367Fmj95PzL89YpDbeA=; b=Nw3x2/DH8LxuvvN2sa5C6NBcYl62J8cvXWjR37BcZiZTNse5LtpgksFRigh0KsaObB Qb4qdq7RGIFOUA7f/67IGFudF4C9lqpWVaeFZc9YqgH/QW+pZBYa8W97COUaNpzk5NNl aEJFgGtGkrAJuR8DSwEHGsPmBCpR87x6ggJXZh/1UMojmpBRP36Ij9/TD862o7fMfPet EXkIP/2Iqskuu95DqCgqUCBjVUfW0hg1bV47CNejc509frRGT+ePEV61ZXYoFaxhf2Cx mutX0MeLxhUGnGN/bMacs+wd0qfoYtSWUIMz89d/04flrF5YuiufCgiof+fGlBw0mBD+ Kg/Q== X-Gm-Message-State: APzg51A1fdu2mr+60xuw20i01ahTQ2CMnHqV8SJA9mSwdacJYIX3v0CT +9punw7BzgPjSqi9bWpkOkoKlA== X-Received: by 2002:a5d:6984:: with SMTP id g4-v6mr7616060wru.232.1535641097949; Thu, 30 Aug 2018 07:58:17 -0700 (PDT) Received: from [192.168.0.40] (sju31-1-78-210-255-2.fbx.proxad.net. [78.210.255.2]) by smtp.googlemail.com with ESMTPSA id l24-v6sm15292528wrb.65.2018.08.30.07.58.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 07:58:17 -0700 (PDT) Subject: Re: [PATCH] thermal: Convert to using %pOFn instead of device_node.name To: Rob Herring , linux-kernel@vger.kernel.org Cc: Zhang Rui , Eduardo Valentin , linux-pm@vger.kernel.org References: <20180828015252.28511-1-robh@kernel.org> <20180828015252.28511-45-robh@kernel.org> From: Daniel Lezcano Message-ID: Date: Thu, 30 Aug 2018 16:58:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180828015252.28511-45-robh@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/08/2018 03:52, Rob Herring wrote: > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Zhang Rui > Cc: Eduardo Valentin > Cc: Daniel Lezcano > Cc: linux-pm@vger.kernel.org > Signed-off-by: Rob Herring > --- Acked-by: Daniel Lezcano > drivers/thermal/of-thermal.c | 10 +++++----- > drivers/thermal/qoriq_thermal.c | 4 ++-- > 2 files changed, 7 insertions(+), 7 deletions(-) > > diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c > index 977a8307fbb1..e201ae1c382f 100644 > --- a/drivers/thermal/of-thermal.c > +++ b/drivers/thermal/of-thermal.c > @@ -483,8 +483,8 @@ thermal_zone_of_sensor_register(struct device *dev, int sensor_id, void *data, > if (sensor_specs.args_count >= 1) { > id = sensor_specs.args[0]; > WARN(sensor_specs.args_count > 1, > - "%s: too many cells in sensor specifier %d\n", > - sensor_specs.np->name, sensor_specs.args_count); > + "%pOFn: too many cells in sensor specifier %d\n", > + sensor_specs.np, sensor_specs.args_count); > } else { > id = 0; > } > @@ -960,8 +960,8 @@ int __init of_parse_thermal_zones(void) > > tz = thermal_of_build_thermal_zone(child); > if (IS_ERR(tz)) { > - pr_err("failed to build thermal zone %s: %ld\n", > - child->name, > + pr_err("failed to build thermal zone %pOFn: %ld\n", > + child, > PTR_ERR(tz)); > continue; > } > @@ -995,7 +995,7 @@ int __init of_parse_thermal_zones(void) > tz->passive_delay, > tz->polling_delay); > if (IS_ERR(zone)) { > - pr_err("Failed to build %s zone %ld\n", child->name, > + pr_err("Failed to build %pOFn zone %ld\n", child, > PTR_ERR(zone)); > kfree(tzp); > kfree(ops); > diff --git a/drivers/thermal/qoriq_thermal.c b/drivers/thermal/qoriq_thermal.c > index c866cc165960..1fa132fc316b 100644 > --- a/drivers/thermal/qoriq_thermal.c > +++ b/drivers/thermal/qoriq_thermal.c > @@ -129,8 +129,8 @@ static int qoriq_tmu_get_sensor_id(void) > if (sensor_specs.args_count >= 1) { > id = sensor_specs.args[0]; > WARN(sensor_specs.args_count > 1, > - "%s: too many cells in sensor specifier %d\n", > - sensor_specs.np->name, sensor_specs.args_count); > + "%pOFn: too many cells in sensor specifier %d\n", > + sensor_specs.np, sensor_specs.args_count); > } else { > id = 0; > } > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog