Re: [PATCH] sparc: Convert to using %pOFn instead of device_node.name

Rob Herring
2018-08-28T14:13:30Z

On Mon, Aug 27, 2018 at 8:52 PM Rob Herring <robh@kernel.org> wrote:
>
> In preparation to remove the node name pointer from struct device_node,
> convert printf users to use the %pOFn format specifier.
>
> Cc: "David S. Miller" <davem@davemloft.net>
> Cc: sparclinux@vger.kernel.org
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---

> @@ -201,7 +201,7 @@ char * __init build_path_component(struct device_node *dp)
> tmp_buf[0] = '\0';
> __build_path_component(dp, tmp_buf);
> if (tmp_buf[0] == '\0')
> - strcpy(tmp_buf, dp->name);
> + snprint(tmp_buf, sizeof(tmp_buf), "%pOFn", dp);

Ugg, v2 coming soon.

Rob