From: Andrew Morton Date: Mon, 13 Oct 2008 09:35:42 +0000 (+0100) Subject: serial-make-uart_ports-ioport-unsigned-long-fix X-Git-Tag: v2.6.28-rc1~668 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9bde10a4b8c54804236d3d6b4b75e98825a921e7;p=linux-2.6-omap-h63xx.git serial-make-uart_ports-ioport-unsigned-long-fix Signed-off-by: Andrew Morton Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds --- diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c index f977c98cfa9..308588e2072 100644 --- a/drivers/serial/serial_core.c +++ b/drivers/serial/serial_core.c @@ -2154,12 +2154,11 @@ uart_report_port(struct uart_driver *drv, struct uart_port *port) switch (port->iotype) { case UPIO_PORT: - snprintf(address, sizeof(address), - "I/O 0x%x", port->iobase); + snprintf(address, sizeof(address), "I/O 0x%lx", port->iobase); break; case UPIO_HUB6: snprintf(address, sizeof(address), - "I/O 0x%x offset 0x%x", port->iobase, port->hub6); + "I/O 0x%lx offset 0x%x", port->iobase, port->hub6); break; case UPIO_MEM: case UPIO_MEM32: