diff options
author | Chris Johns <chrisj@rtems.org> | 2016-05-23 15:24:34 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2016-05-25 15:47:34 +1000 |
commit | 1503c1c382b501bdcf87703c00a1ad0908f4ac01 (patch) | |
tree | 17912855e40df940d10737af42798860d2d205dc /c/src/lib/libbsp/i386/shared/comm | |
parent | cpukit, testsuite: Add rtems_printf and rtems_printer support. (diff) | |
download | rtems-1503c1c382b501bdcf87703c00a1ad0908f4ac01.tar.bz2 |
i386/pc386: Fix printk formatting warnings.
Diffstat (limited to 'c/src/lib/libbsp/i386/shared/comm')
-rw-r--r-- | c/src/lib/libbsp/i386/shared/comm/i386-stub.c | 1 | ||||
-rw-r--r-- | c/src/lib/libbsp/i386/shared/comm/tty_drv.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/i386/shared/comm/i386-stub.c b/c/src/lib/libbsp/i386/shared/comm/i386-stub.c index d28a431181..1eff100e9e 100644 --- a/c/src/lib/libbsp/i386/shared/comm/i386-stub.c +++ b/c/src/lib/libbsp/i386/shared/comm/i386-stub.c @@ -1032,7 +1032,6 @@ handle_exception (int exceptionVector) if (*(ptr++) == ',') { bool insert = remcomInBuffer[0] == 'Z'; - printk("hbreak type\n", insert); if (hexToInt (&ptr, &addr)) { if (*(ptr++) == ',') 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 <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <assert.h> @@ -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; } |