native uart: print errors to stderr.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/eddcf8fa Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/eddcf8fa Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/eddcf8fa Branch: refs/heads/nrf_cputime Commit: eddcf8fa05e6c70ac4670e47c6ac90dcace1ccb6 Parents: 103f39e Author: Christopher Collins <ccoll...@apache.org> Authored: Tue Mar 7 17:19:04 2017 -0800 Committer: Christopher Collins <ccoll...@apache.org> Committed: Tue Mar 28 16:58:41 2017 -0700 ---------------------------------------------------------------------- hw/mcu/native/src/native_uart_cfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/eddcf8fa/hw/mcu/native/src/native_uart_cfg.c ---------------------------------------------------------------------- diff --git a/hw/mcu/native/src/native_uart_cfg.c b/hw/mcu/native/src/native_uart_cfg.c index 4f9dcef..de6bd0b 100644 --- a/hw/mcu/native/src/native_uart_cfg.c +++ b/hw/mcu/native/src/native_uart_cfg.c @@ -225,7 +225,7 @@ uart_dev_set_attr(int fd, int32_t baudrate, uint8_t databits, rc = tcsetattr(fd, TCSANOW, &tty); if (rc != 0) { - dprintf(1, "tcsetattr failed; %d (%s)\n", errno, strerror(errno)); + fprintf(stderr, "tcsetattr failed; %d (%s)\n", errno, strerror(errno)); return -1; }