lkml.org 
[lkml]   [2018]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH] sparc: Convert to using %pOFn instead of device_node.name
    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

    \
     
     \ /
      Last update: 2018-08-28 16:14    [W:2.381 / U:0.232 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site