aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2007-07-31 03:37:34 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-31 18:39:37 -0400
commitddb437b7f74de775ff50ef51a8b2970564d56f86 (patch)
treeb011e5d2f5ff944725a38b6455dce60ba165e39b
parente6b33220845d4702590ecbe356787e59c8d914ae (diff)
serial_txx9: fix printk format mismatch
Since the commit 4f640efb3170dbcf99a37a3cc99060647b95428c, "%lx" is not suitable for p->mapbase (resource_size_t) in 32-bit. This patch fixes a compiler warning caused by the mismatch. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--drivers/serial/serial_txx9.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/serial/serial_txx9.c b/drivers/serial/serial_txx9.c
index 1deb5764326d..b8f91e018b21 100644
--- a/drivers/serial/serial_txx9.c
+++ b/drivers/serial/serial_txx9.c
@@ -1043,8 +1043,9 @@ static int __devinit serial_txx9_probe(struct platform_device *dev)
1043 ret = serial_txx9_register_port(&port); 1043 ret = serial_txx9_register_port(&port);
1044 if (ret < 0) { 1044 if (ret < 0) {
1045 dev_err(&dev->dev, "unable to register port at index %d " 1045 dev_err(&dev->dev, "unable to register port at index %d "
1046 "(IO%x MEM%lx IRQ%d): %d\n", i, 1046 "(IO%x MEM%llx IRQ%d): %d\n", i,
1047 p->iobase, p->mapbase, p->irq, ret); 1047 p->iobase, (unsigned long long)p->mapbase,
1048 p->irq, ret);
1048 } 1049 }
1049 } 1050 }
1050 return 0; 1051 return 0;