tty: serial: 8250: Fix type field in format string
PATCH 1/1 tty: serial: 8250: Fix type field in format string
The variable type and the type field is inconsistent.
--- drivers/tty/serial/8250/8250_pnp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/tty/serial/8250/8250_pnp.c +2 -2
@@ -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 %#lx, irq %u, type %u\n" , + uart.port.iobase, uart.port.mapbase, uart.port.irq, uart.port.iotype);if (flags &CIR_PORT ) {
Signature · 1 line
2.14.5
Greg KH
maintainerQuoted 1 line · Hao Lee
The variable type and the type field is inconsistent.
In what way? Please be very specific when you resend this.
thanks,
greg k-h
Quoted 5 lines · Greg KH
Quoted 1 line · Hao Lee
The variable type and the type field is inconsistent.
In what way? Please be very specific when you resend this.
The main problem is 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.
Regards,
Hao Lee
Greg KH
maintainerQuoted 11 lines · Hao Lee
Quoted 5 lines · Greg KH
Quoted 1 line · Hao Lee
The variable type and the type field is inconsistent.
In what way? Please be very specific when you resend this.
The main problem is the
dev_dbgstatement 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.
Wonderful, put all of that in the changelog text and please resend. What you submitted is not sufficient.
thanks,
greg k-h