Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[PATCH] serial: fix printk format specifiers for struct ua..

 
   Soft32 Home -> Linux -> Kernel RSS
Next:  Bug#554955: [libtorrent-rasterbar] Version bump t..  
Author Message
Lennert Buytenhek

External


Since: Apr 27, 2007
Posts: 94



(Msg. 1) Posted: Sat Nov 07, 2009 9:20 am
Post subject: [PATCH] serial: fix printk format specifiers for struct uart_port::iobase
Archived from groups: linux>kernel (more info?)

struct uart_port::iobase is unsigned long, so use %lx as printk
format specifier.

Signed-off-by: Lennert Buytenhek <buytenh DeleteThis @wantstofly.org>

diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
index b1ae774..737b4c9 100644
--- a/drivers/serial/8250.c
+++ b/drivers/serial/8250.c
@@ -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);

/*
diff --git a/drivers/serial/8250_pci.c b/drivers/serial/8250_pci.c
index e7108e7..34b0b2b 100644
--- a/drivers/serial/8250_pci.c
+++ b/drivers/serial/8250_pci.c
@@ -2340,7 +2340,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

--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo DeleteThis @vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[PATCH 0/2] [SERIAL] [USB] fixed to skip NULL entry in str.. - Hi, When I boot using linux-2.6.21-rc4 on ThinkPad T41 with pl2303 USB serial device plugged in, the kernel..

[PATCH] sysfs: printk format warning - From: Randy Dunlap <randy.dunlap@oracle.com> Fix sysfs printk format warning: fs/sysfs/bin.c:62: warning: format...

[PATCH] ftape: fix printk format warnings - From: Randy Dunlap <randy.dunlap@oracle.com> Fix printk format warnings: drivers/char/ftape/zftape/zftape-buffer...

[PATCH]: Fix printk format warnings in timer_list.c - u64 and s64 are not necessarily 'long long' on some 64-bit platforms, so explicit the type to kill the compiler..

[PATCH -mm] schedstats: fix printk format - From: Randy Dunlap <randy.dunlap@oracle.com> Fix printk format warnings for schedstats: fs/proc/base.c:309: war...

[PATCH -mm] IRDA: fix printk format - From: Randy Dunlap <randy.dunlap@oracle.com> Fix printk format warning: drivers/net/irda/irport.c:512: warning: ...
       Soft32 Home -> Linux -> Kernel All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]