lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAL_JsqK-U02dwj8H5KW9uF06NuK7AgCfAVeatsB-F-GGsxafvg@mail.gmail.com>
Date:   Tue, 28 Aug 2018 09:13:15 -0500
From:   Rob Herring <robh@...nel.org>
To:     "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Cc:     David Miller <davem@...emloft.net>, sparclinux@...r.kernel.org
Subject: Re: [PATCH] sparc: Convert to using %pOFn instead of device_node.name

On Mon, Aug 27, 2018 at 8:52 PM Rob Herring <robh@...nel.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@...emloft.net>
> Cc: sparclinux@...r.kernel.org
> Signed-off-by: Rob Herring <robh@...nel.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ