From: Jiri Slaby (SUSE) Date: Wed, 11 Jun 2025 10:02:49 +0000 (+0200) Subject: powerpc/legacy_serial: use %pa for phys_addr_t prints X-Git-Tag: io_uring-6.17-20250808~51^2~78 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=33bc4874e97d219c0305ff54c8026b0859a0fe0e;p=linux-block.git powerpc/legacy_serial: use %pa for phys_addr_t prints It makes the code easier to read as casts are not needed. Signed-off-by: "Jiri Slaby (SUSE)" Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Link: https://lore.kernel.org/r/20250611100319.186924-4-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/powerpc/kernel/legacy_serial.c b/arch/powerpc/kernel/legacy_serial.c index d9080189c28c..a874eb8e000b 100644 --- a/arch/powerpc/kernel/legacy_serial.c +++ b/arch/powerpc/kernel/legacy_serial.c @@ -153,10 +153,9 @@ static int __init add_legacy_port(struct device_node *np, int want_index, } printk(KERN_DEBUG "Found legacy serial port %d for %pOF\n", index, np); - printk(KERN_DEBUG " %s=%llx, taddr=%llx, irq=%lx, clk=%d, speed=%d\n", + printk(KERN_DEBUG " %s=%pa, taddr=%pa, irq=%lx, clk=%d, speed=%d\n", (iotype == UPIO_PORT) ? "port" : "mem", - (unsigned long long)base, (unsigned long long)taddr, irq, - legacy_port->uartclk, legacy_info->speed); + &base, &taddr, irq, legacy_port->uartclk, legacy_info->speed); return index; }