Skip to content

Commit

Permalink
serial: fix printk format specifiers for struct uart_port::iobase
Browse files Browse the repository at this point in the history
struct uart_port::iobase is unsigned long, so use %lx as printk format
specifier.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Lennert Buytenhek authored and Linus Torvalds committed Nov 12, 2009
1 parent 05f45d7 commit 80647b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/serial/8250.c
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ static void autoconfig(struct uart_8250_port *up, unsigned int probeflags)
if (!up->port.iobase && !up->port.mapbase && !up->port.membase)
return;

DEBUG_AUTOCONF("ttyS%d: autoconf (0x%04x, 0x%p): ",
DEBUG_AUTOCONF("ttyS%d: autoconf (0x%04lx, 0x%p): ",
serial_index(&up->port), up->port.iobase, up->port.membase);

/*
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/8250_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2383,7 +2383,7 @@ pciserial_init_ports(struct pci_dev *dev, const struct pciserial_board *board)
break;

#ifdef SERIAL_DEBUG_PCI
printk(KERN_DEBUG "Setup PCI port: port %x, irq %d, type %d\n",
printk(KERN_DEBUG "Setup PCI port: port %lx, irq %d, type %d\n",
serial_port.iobase, serial_port.irq, serial_port.iotype);
#endif

Expand Down

0 comments on commit 80647b9

Please sign in to comment.