summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorHao Lee <haolee.swjtu@gmail.com>2019-04-30 00:24:02 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-21 12:12:03 +0200
commitdfaffb9dca90638f5e2e80f430283b7ecaeb1bb0 (patch)
treeb2046c8f615ef26f1a977b805e4a3cf191cf3300 /drivers/tty
parent525667c0259d6072016436b189ece597b32c1648 (diff)
downloadlinux-dfaffb9dca90638f5e2e80f430283b7ecaeb1bb0.tar.bz2
tty: serial: 8250: Fix type field in format string
The dev_dbg statement should print the value of uart.port.mapbase instead of its address. Besides that, uart.port.irq and uart.port.iotype are all unsigned types, so using %u is more appropriate. Signed-off-by: Hao Lee <haolee.swjtu@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/8250/8250_pnp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/8250/8250_pnp.c b/drivers/tty/serial/8250/8250_pnp.c
index 431e69a5a6a0..dfca33141fcc 100644
--- a/drivers/tty/serial/8250/8250_pnp.c
+++ b/drivers/tty/serial/8250/8250_pnp.c
@@ -462,8 +462,8 @@ serial_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id)
return -ENODEV;
dev_dbg(&dev->dev,
- "Setup PNP port: port %lx, mem %pa, irq %d, type %d\n",
- uart.port.iobase, &uart.port.mapbase,
+ "Setup PNP port: port %#lx, mem %#llx, irq %u, type %u\n",
+ uart.port.iobase, (unsigned long long)uart.port.mapbase,
uart.port.irq, uart.port.iotype);
if (flags & CIR_PORT) {