* [PATCH] cpufreq: Convert to using %pOFn instead of device_node.name [not found] <20180828015252.28511-1-robh@kernel.org> @ 2018-08-28 1:52 ` Rob Herring 2018-09-03 6:34 ` Viresh Kumar 2018-09-14 8:27 ` Rafael J. Wysocki 2018-08-28 1:52 ` [PATCH] devfreq: " Rob Herring 2018-08-28 1:52 ` [PATCH] thermal: " Rob Herring 2 siblings, 2 replies; 8+ messages in thread From: Rob Herring @ 2018-08-28 1:52 UTC (permalink / raw) To: linux-kernel Cc: Rafael J. Wysocki, Viresh Kumar, linux-arm-kernel, linux-samsung-soc, linux-pm In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net> Cc: Viresh Kumar <viresh.kumar@linaro.org> Cc: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org Cc: linux-pm@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org> --- drivers/cpufreq/s5pv210-cpufreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c index 5d31c2db12a3..dbecd7667db2 100644 --- a/drivers/cpufreq/s5pv210-cpufreq.c +++ b/drivers/cpufreq/s5pv210-cpufreq.c @@ -611,8 +611,8 @@ static int s5pv210_cpufreq_probe(struct platform_device *pdev) for_each_compatible_node(np, NULL, "samsung,s5pv210-dmc") { id = of_alias_get_id(np, "dmc"); if (id < 0 || id >= ARRAY_SIZE(dmc_base)) { - pr_err("%s: failed to get alias of dmc node '%s'\n", - __func__, np->name); + pr_err("%s: failed to get alias of dmc node '%pOFn'\n", + __func__, np); of_node_put(np); return id; } -- 2.17.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] cpufreq: Convert to using %pOFn instead of device_node.name 2018-08-28 1:52 ` [PATCH] cpufreq: Convert to using %pOFn instead of device_node.name Rob Herring @ 2018-09-03 6:34 ` Viresh Kumar 2018-09-14 8:27 ` Rafael J. Wysocki 1 sibling, 0 replies; 8+ messages in thread From: Viresh Kumar @ 2018-09-03 6:34 UTC (permalink / raw) To: Rob Herring Cc: linux-kernel, Rafael J. Wysocki, linux-arm-kernel, linux-samsung-soc, linux-pm On 27-08-18, 20: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: "Rafael J. Wysocki" <rjw@rjwysocki.net> > Cc: Viresh Kumar <viresh.kumar@linaro.org> > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-samsung-soc@vger.kernel.org > Cc: linux-pm@vger.kernel.org > Signed-off-by: Rob Herring <robh@kernel.org> > --- > drivers/cpufreq/s5pv210-cpufreq.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c > index 5d31c2db12a3..dbecd7667db2 100644 > --- a/drivers/cpufreq/s5pv210-cpufreq.c > +++ b/drivers/cpufreq/s5pv210-cpufreq.c > @@ -611,8 +611,8 @@ static int s5pv210_cpufreq_probe(struct platform_device *pdev) > for_each_compatible_node(np, NULL, "samsung,s5pv210-dmc") { > id = of_alias_get_id(np, "dmc"); > if (id < 0 || id >= ARRAY_SIZE(dmc_base)) { > - pr_err("%s: failed to get alias of dmc node '%s'\n", > - __func__, np->name); > + pr_err("%s: failed to get alias of dmc node '%pOFn'\n", > + __func__, np); > of_node_put(np); > return id; > } Acked-by: Viresh Kumar <viresh.kumar@linaro.org> -- viresh ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] cpufreq: Convert to using %pOFn instead of device_node.name 2018-08-28 1:52 ` [PATCH] cpufreq: Convert to using %pOFn instead of device_node.name Rob Herring 2018-09-03 6:34 ` Viresh Kumar @ 2018-09-14 8:27 ` Rafael J. Wysocki 1 sibling, 0 replies; 8+ messages in thread From: Rafael J. Wysocki @ 2018-09-14 8:27 UTC (permalink / raw) To: Rob Herring Cc: linux-kernel, Viresh Kumar, linux-arm-kernel, linux-samsung-soc, linux-pm On Tuesday, August 28, 2018 3:52:15 AM CEST 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: "Rafael J. Wysocki" <rjw@rjwysocki.net> > Cc: Viresh Kumar <viresh.kumar@linaro.org> > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-samsung-soc@vger.kernel.org > Cc: linux-pm@vger.kernel.org > Signed-off-by: Rob Herring <robh@kernel.org> > --- > drivers/cpufreq/s5pv210-cpufreq.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c > index 5d31c2db12a3..dbecd7667db2 100644 > --- a/drivers/cpufreq/s5pv210-cpufreq.c > +++ b/drivers/cpufreq/s5pv210-cpufreq.c > @@ -611,8 +611,8 @@ static int s5pv210_cpufreq_probe(struct platform_device *pdev) > for_each_compatible_node(np, NULL, "samsung,s5pv210-dmc") { > id = of_alias_get_id(np, "dmc"); > if (id < 0 || id >= ARRAY_SIZE(dmc_base)) { > - pr_err("%s: failed to get alias of dmc node '%s'\n", > - __func__, np->name); > + pr_err("%s: failed to get alias of dmc node '%pOFn'\n", > + __func__, np); > of_node_put(np); > return id; > } > Applied, thanks! ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] devfreq: Convert to using %pOFn instead of device_node.name [not found] <20180828015252.28511-1-robh@kernel.org> 2018-08-28 1:52 ` [PATCH] cpufreq: Convert to using %pOFn instead of device_node.name Rob Herring @ 2018-08-28 1:52 ` Rob Herring 2018-08-28 2:06 ` Chanwoo Choi [not found] ` <CGME20180828015312epcas2p2fdb2ee1d1b292f212ec773dd8fb4bfc7@epcms1p8> 2018-08-28 1:52 ` [PATCH] thermal: " Rob Herring 2 siblings, 2 replies; 8+ messages in thread From: Rob Herring @ 2018-08-28 1:52 UTC (permalink / raw) To: linux-kernel Cc: Chanwoo Choi, MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm, linux-arm-kernel, linux-samsung-soc In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: Chanwoo Choi <cw00.choi@samsung.com> Cc: MyungJoo Ham <myungjoo.ham@samsung.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Kukjin Kim <kgene@kernel.org> Cc: Krzysztof Kozlowski <krzk@kernel.org> Cc: linux-pm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org> --- drivers/devfreq/event/exynos-ppmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/devfreq/event/exynos-ppmu.c b/drivers/devfreq/event/exynos-ppmu.c index a9c64f0d3284..c61de0bdf053 100644 --- a/drivers/devfreq/event/exynos-ppmu.c +++ b/drivers/devfreq/event/exynos-ppmu.c @@ -535,8 +535,8 @@ static int of_get_devfreq_events(struct device_node *np, if (i == ARRAY_SIZE(ppmu_events)) { dev_warn(dev, - "don't know how to configure events : %s\n", - node->name); + "don't know how to configure events : %pOFn\n", + node); continue; } -- 2.17.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] devfreq: Convert to using %pOFn instead of device_node.name 2018-08-28 1:52 ` [PATCH] devfreq: " Rob Herring @ 2018-08-28 2:06 ` Chanwoo Choi [not found] ` <CGME20180828015312epcas2p2fdb2ee1d1b292f212ec773dd8fb4bfc7@epcms1p8> 1 sibling, 0 replies; 8+ messages in thread From: Chanwoo Choi @ 2018-08-28 2:06 UTC (permalink / raw) To: Rob Herring, linux-kernel Cc: MyungJoo Ham, Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm, linux-arm-kernel, linux-samsung-soc Dear Rob, On 2018년 08월 28일 10: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: Chanwoo Choi <cw00.choi@samsung.com> > Cc: MyungJoo Ham <myungjoo.ham@samsung.com> > Cc: Kyungmin Park <kyungmin.park@samsung.com> > Cc: Kukjin Kim <kgene@kernel.org> > Cc: Krzysztof Kozlowski <krzk@kernel.org> > Cc: linux-pm@vger.kernel.org > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-samsung-soc@vger.kernel.org > Signed-off-by: Rob Herring <robh@kernel.org> > --- > drivers/devfreq/event/exynos-ppmu.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/devfreq/event/exynos-ppmu.c b/drivers/devfreq/event/exynos-ppmu.c > index a9c64f0d3284..c61de0bdf053 100644 > --- a/drivers/devfreq/event/exynos-ppmu.c > +++ b/drivers/devfreq/event/exynos-ppmu.c > @@ -535,8 +535,8 @@ static int of_get_devfreq_events(struct device_node *np, > > if (i == ARRAY_SIZE(ppmu_events)) { > dev_warn(dev, > - "don't know how to configure events : %s\n", > - node->name); > + "don't know how to configure events : %pOFn\n", > + node); > continue; > } > > Acked-by: Chanwoo Choi <cw00.choi@samsung.com> -- Best Regards, Chanwoo Choi Samsung Electronics ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <CGME20180828015312epcas2p2fdb2ee1d1b292f212ec773dd8fb4bfc7@epcms1p8>]
* RE: Re: [PATCH] devfreq: Convert to using %pOFn instead of device_node.name [not found] ` <CGME20180828015312epcas2p2fdb2ee1d1b292f212ec773dd8fb4bfc7@epcms1p8> @ 2018-08-29 2:10 ` MyungJoo Ham 0 siblings, 0 replies; 8+ messages in thread From: MyungJoo Ham @ 2018-08-29 2:10 UTC (permalink / raw) To: Chanwoo Choi, Rob Herring, linux-kernel@vger.kernel.org Cc: Kyungmin Park, Kukjin Kim, Krzysztof Kozlowski, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org > Dear Rob, > > On 2018년 08월 28일 10: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: Chanwoo Choi <cw00.choi@samsung.com> > > Cc: MyungJoo Ham <myungjoo.ham@samsung.com> > > Cc: Kyungmin Park <kyungmin.park@samsung.com> > > Cc: Kukjin Kim <kgene@kernel.org> > > Cc: Krzysztof Kozlowski <krzk@kernel.org> > > Cc: linux-pm@vger.kernel.org > > Cc: linux-arm-kernel@lists.infradead.org > > Cc: linux-samsung-soc@vger.kernel.org > > Signed-off-by: Rob Herring <robh@kernel.org> > > --- > > drivers/devfreq/event/exynos-ppmu.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > [] > > Acked-by: Chanwoo Choi <cw00.choi@samsung.com> Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] thermal: Convert to using %pOFn instead of device_node.name [not found] <20180828015252.28511-1-robh@kernel.org> 2018-08-28 1:52 ` [PATCH] cpufreq: Convert to using %pOFn instead of device_node.name Rob Herring 2018-08-28 1:52 ` [PATCH] devfreq: " Rob Herring @ 2018-08-28 1:52 ` Rob Herring 2018-08-30 14:58 ` Daniel Lezcano 2 siblings, 1 reply; 8+ messages in thread From: Rob Herring @ 2018-08-28 1:52 UTC (permalink / raw) To: linux-kernel; +Cc: Zhang Rui, Eduardo Valentin, Daniel Lezcano, linux-pm In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: Zhang Rui <rui.zhang@intel.com> Cc: Eduardo Valentin <edubezval@gmail.com> Cc: Daniel Lezcano <daniel.lezcano@linaro.org> Cc: linux-pm@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org> --- 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; } -- 2.17.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] thermal: Convert to using %pOFn instead of device_node.name 2018-08-28 1:52 ` [PATCH] thermal: " Rob Herring @ 2018-08-30 14:58 ` Daniel Lezcano 0 siblings, 0 replies; 8+ messages in thread From: Daniel Lezcano @ 2018-08-30 14:58 UTC (permalink / raw) To: Rob Herring, linux-kernel; +Cc: Zhang Rui, Eduardo Valentin, linux-pm 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 <rui.zhang@intel.com> > Cc: Eduardo Valentin <edubezval@gmail.com> > Cc: Daniel Lezcano <daniel.lezcano@linaro.org> > Cc: linux-pm@vger.kernel.org > Signed-off-by: Rob Herring <robh@kernel.org> > --- Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> > 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; > } > -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2018-09-14 8:27 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20180828015252.28511-1-robh@kernel.org> 2018-08-28 1:52 ` [PATCH] cpufreq: Convert to using %pOFn instead of device_node.name Rob Herring 2018-09-03 6:34 ` Viresh Kumar 2018-09-14 8:27 ` Rafael J. Wysocki 2018-08-28 1:52 ` [PATCH] devfreq: " Rob Herring 2018-08-28 2:06 ` Chanwoo Choi [not found] ` <CGME20180828015312epcas2p2fdb2ee1d1b292f212ec773dd8fb4bfc7@epcms1p8> 2018-08-29 2:10 ` MyungJoo Ham 2018-08-28 1:52 ` [PATCH] thermal: " Rob Herring 2018-08-30 14:58 ` Daniel Lezcano
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).