mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
2c35a83b11
commit
33bc4874e9
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue