diff options
| author | Jiri Slaby (SUSE) <jirislaby@kernel.org> | 2025-06-11 12:02:49 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-06-17 13:42:33 +0200 |
| commit | 33bc4874e97d219c0305ff54c8026b0859a0fe0e (patch) | |
| tree | 02c4092e338f65c5b3a3f134dcede2b13f50c2ab /arch/powerpc/kernel | |
| parent | 2c35a83b11123591fecd792744834082d037bd4f (diff) | |
| download | linux-33bc4874e97d219c0305ff54c8026b0859a0fe0e.tar.gz linux-33bc4874e97d219c0305ff54c8026b0859a0fe0e.tar.bz2 linux-33bc4874e97d219c0305ff54c8026b0859a0fe0e.zip | |
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)" <jirislaby@kernel.org>
Cc: Madhavan Srinivasan <maddy@linux.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/20250611100319.186924-4-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/powerpc/kernel')
| -rw-r--r-- | arch/powerpc/kernel/legacy_serial.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; } |
