提交 ddb437b7 编写于 作者: A Atsushi Nemoto 提交者: 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: NAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册