Repository: incubator-mynewt-core Updated Branches: refs/heads/master e13e309d9 -> 271ab1b9c
MYNEWT-734 console_printf() return # printed chrs. Fix a bug for non-baselibc builds. 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/271ab1b9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/271ab1b9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/271ab1b9 Branch: refs/heads/master Commit: 271ab1b9cc8a1db63d785f281ca118ab1580c9c9 Parents: e13e309 Author: Christopher Collins <ccoll...@apache.org> Authored: Thu Apr 20 15:41:38 2017 -0700 Committer: Christopher Collins <ccoll...@apache.org> Committed: Thu Apr 20 15:41:38 2017 -0700 ---------------------------------------------------------------------- sys/console/full/src/cons_fmt.c | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/271ab1b9/sys/console/full/src/cons_fmt.c ---------------------------------------------------------------------- diff --git a/sys/console/full/src/cons_fmt.c b/sys/console/full/src/cons_fmt.c index 1a3c72e..cd848c6 100644 --- a/sys/console/full/src/cons_fmt.c +++ b/sys/console/full/src/cons_fmt.c @@ -86,6 +86,8 @@ console_printf(const char *fmt, ...) int num_chars; int len; + num_chars = 0; + if (console_get_ticks()) { /* Prefix each line with a timestamp. */ if (!console_is_midline) {