提交 e0525393 编写于 作者: H Hans Wennborg 提交者: Greg Kroah-Hartman

TTY: fix decimal printf format specifiers prefixed with 0x

The prefix suggests the number should be printed in hex, so use
the %x specifier to do that.

Found by using regex suggested by Joe Perches.
Signed-off-by: NHans Wennborg <hans@hanshq.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 62b0a1b3
......@@ -1096,7 +1096,7 @@ static int __init moxa_init(void)
continue;
}
printk(KERN_INFO "MOXA isa board found at 0x%.8lu and "
printk(KERN_INFO "MOXA isa board found at 0x%.8lx and "
"ready (%u ports, firmware loaded)\n",
baseaddr[i], brd->numPorts);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册