Skip to content

Commit

Permalink
serial-make-uart_ports-ioport-unsigned-long-fix
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Oct 13, 2008
1 parent 716da63 commit 9bde10a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/serial/serial_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9bde10a

Please sign in to comment.