Commit ddb437b7 authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Linus Torvalds

serial_txx9: fix printk format mismatch

Since the commit 4f640efb, "%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: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e6b33220
...@@ -1043,8 +1043,9 @@ static int __devinit serial_txx9_probe(struct platform_device *dev) ...@@ -1043,8 +1043,9 @@ static int __devinit serial_txx9_probe(struct platform_device *dev)
ret = serial_txx9_register_port(&port); ret = serial_txx9_register_port(&port);
if (ret < 0) { if (ret < 0) {
dev_err(&dev->dev, "unable to register port at index %d " dev_err(&dev->dev, "unable to register port at index %d "
"(IO%x MEM%lx IRQ%d): %d\n", i, "(IO%x MEM%llx IRQ%d): %d\n", i,
p->iobase, p->mapbase, p->irq, ret); p->iobase, (unsigned long long)p->mapbase,
p->irq, ret);
} }
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment