All of lore.kernel.org
 help / color / mirror / Atom feed
* + serial-fix-printk-format-specifiers-for-struct-uart_port-iobase.patch added to -mm tree
@ 2009-11-11  0:15 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2009-11-11  0:15 UTC (permalink / raw)
  To: mm-commits; +Cc: buytenh, alan


The patch titled
     serial: fix printk format specifiers for struct uart_port::iobase
has been added to the -mm tree.  Its filename is
     serial-fix-printk-format-specifiers-for-struct-uart_port-iobase.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: serial: fix printk format specifiers for struct uart_port::iobase
From: Lennert Buytenhek <buytenh@wantstofly.org>

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>
---


diff -puN drivers/serial/8250.c~serial-fix-printk-format-specifiers-for-struct-uart_port-iobase drivers/serial/8250.c
--- a/drivers/serial/8250.c~serial-fix-printk-format-specifiers-for-struct-uart_port-iobase
+++ a/drivers/serial/8250.c
@@ -1089,7 +1089,7 @@ static void autoconfig(struct uart_8250_
 	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);
 
 	/*
diff -puN drivers/serial/8250_pci.c~serial-fix-printk-format-specifiers-for-struct-uart_port-iobase drivers/serial/8250_pci.c
--- a/drivers/serial/8250_pci.c~serial-fix-printk-format-specifiers-for-struct-uart_port-iobase
+++ a/drivers/serial/8250_pci.c
@@ -2383,7 +2383,7 @@ pciserial_init_ports(struct pci_dev *dev
 			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
 
_

Patches currently in -mm which might be from buytenh@wantstofly.org are

linux-next.patch
serial-fix-printk-format-specifiers-for-struct-uart_port-iobase.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-11  0:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-11  0:15 + serial-fix-printk-format-specifiers-for-struct-uart_port-iobase.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.