Pārlūkot izejas kodu

serial-make-uart_ports-ioport-unsigned-long-fix

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>
Andrew Morton 16 gadi atpakaļ
vecāks
revīzija
9bde10a4b8
1 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  1. 2 3
      drivers/serial/serial_core.c

+ 2 - 3
drivers/serial/serial_core.c

@@ -2154,12 +2154,11 @@ uart_report_port(struct uart_driver *drv, struct uart_port *port)
 
 
 	switch (port->iotype) {
 	switch (port->iotype) {
 	case UPIO_PORT:
 	case UPIO_PORT:
-		snprintf(address, sizeof(address),
-			 "I/O 0x%x", port->iobase);
+		snprintf(address, sizeof(address), "I/O 0x%lx", port->iobase);
 		break;
 		break;
 	case UPIO_HUB6:
 	case UPIO_HUB6:
 		snprintf(address, sizeof(address),
 		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;
 		break;
 	case UPIO_MEM:
 	case UPIO_MEM:
 	case UPIO_MEM32:
 	case UPIO_MEM32: