You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/09/08 02:52:47 UTC

[2/4] incubator-mynewt-core git commit: Change logging format to use 16-bit index.

Change logging format to use 16-bit index.

Initialize g_log_info struct with current version.

For MYNEWT-368


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/42048f48
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/42048f48
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/42048f48

Branch: refs/heads/develop
Commit: 42048f4887e4b5cdb062e5dab8405f9e31e5bc9f
Parents: 2d7ed71
Author: Peter Snyder <gi...@peterfs.com>
Authored: Thu Sep 1 17:45:02 2016 -0700
Committer: Peter Snyder <gi...@peterfs.com>
Committed: Wed Sep 7 19:47:36 2016 -0700

----------------------------------------------------------------------
 sys/log/src/log.c | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/42048f48/sys/log/src/log.c
----------------------------------------------------------------------
diff --git a/sys/log/src/log.c b/sys/log/src/log.c
index 23bb83a..c2c9ee5 100644
--- a/sys/log/src/log.c
+++ b/sys/log/src/log.c
@@ -58,6 +58,10 @@ log_init(void)
     }
     log_inited = 1;
 
+    g_log_info.li_version = LOG_VERSION_V2;
+    g_log_info.li_index = 0;
+    g_log_info.li_timestamp = 0;
+
 #ifdef SHELL_PRESENT
     shell_cmd_register(&g_shell_log_cmd);
 #endif