From 1503c1c382b501bdcf87703c00a1ad0908f4ac01 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 23 May 2016 15:24:34 +1000 Subject: i386/pc386: Fix printk formatting warnings. --- c/src/lib/libbsp/i386/shared/comm/tty_drv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'c/src/lib/libbsp/i386/shared/comm/tty_drv.c') diff --git a/c/src/lib/libbsp/i386/shared/comm/tty_drv.c b/c/src/lib/libbsp/i386/shared/comm/tty_drv.c index 16a40df465..bbc22af8fb 100644 --- a/c/src/lib/libbsp/i386/shared/comm/tty_drv.c +++ b/c/src/lib/libbsp/i386/shared/comm/tty_drv.c @@ -16,6 +16,7 @@ ****************************************************************************/ +#include #include #include #include @@ -262,7 +263,8 @@ conSetAttr(int port, int minor, const struct termios *t) stopbits = 0; } - printk("Setting attributes, port=%X, baud=%d, linemode = 0x%02x\n", port, baud, databits | parity | stopbits ); + printk("Setting attributes, port=%X, baud=%" PRId32 ", linemode = 0x%02" PRIx32 "\n", + port, baud, databits | parity | stopbits ); BSP_uart_set_attributes(port, baud, databits, parity, stopbits); return 0; } -- cgit v1.2.3