On Mon, Aug 27, 2018 at 8:52 PM Rob Herring <[email protected]> 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" <[email protected]>
> Cc: [email protected]
> Signed-off-by: Rob Herring <[email protected]>
> ---

> @@ -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

Reply via email to