Re: [PATCH] sparc: Convert to using %pOFn instead of device_node.name
From: Rob Herring
Date: Tue Aug 28 2018 - 10:13:30 EST
On Mon, Aug 27, 2018 at 8:52 PM Rob Herring <robh@xxxxxxxxxx> 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@xxxxxxxxxxxxx>
> Cc: sparclinux@xxxxxxxxxxxxxxx
> Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
> ---
> @@ -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