Re: [PATCH] nios2: Convert to using %pOFn instead of device_node.name
From: Ley Foon Tan
Date: Tue Aug 28 2018 - 04:31:15 EST
On Mon, 2018-08-27 at 20:52 -0500, Rob Herring wrote:
> In preparation to remove the node name pointer from struct
> device_node,
> convert printf users to use the %pOFn format specifier.
>
> Cc: Ley Foon Tan <lftan@xxxxxxxxxx>
> Cc: nios2-dev@xxxxxxxxxxxxxxxxxxxxxx
> Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
Acked-by: Ley Foon Tan <ley.foon.tan@xxxxxxxxx>
> ---
> Âarch/nios2/kernel/time.c | 4 ++--
> Â1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/nios2/kernel/time.c b/arch/nios2/kernel/time.c
> index ab88b6dd4679..54467d0085a1 100644
> --- a/arch/nios2/kernel/time.c
> +++ b/arch/nios2/kernel/time.c
> @@ -214,12 +214,12 @@ static int __init
> nios2_timer_get_base_and_freq(struct device_node *np,
> Â{
> ÂÂÂÂÂÂÂÂ*base = of_iomap(np, 0);
> ÂÂÂÂÂÂÂÂif (!*base) {
> -ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂpr_crit("Unable to map reg for %s\n", np->name);
> +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂpr_crit("Unable to map reg for %pOFn\n", np);
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂreturn -ENXIO;
> ÂÂÂÂÂÂÂÂ}
>
> ÂÂÂÂÂÂÂÂif (of_property_read_u32(np, "clock-frequency", freq)) {
> -ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂpr_crit("Unable to get %s clock frequency\n", np-
> >name);
> +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂpr_crit("Unable to get %pOFn clock frequency\n", np);
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂreturn -EINVAL;
> ÂÂÂÂÂÂÂÂ}
>
> --
> 2.17.1
>
>
> ________________________________
>
> Confidentiality Notice.
> This message may contain information that is confidential or
> otherwise protected from disclosure. If you are not the intended
> recipient, you are hereby notified that any use, disclosure,
> dissemination, distribution, or copying of this message, or any
> attachments, is strictly prohibited. If you have received this
> message in error, please advise the sender by reply e-mail, and
> delete the message and any attachments. Thank you.