You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2015/11/19 01:12:20 UTC

[07/14] incubator-mynewt-larva git commit: Reduce log_buf size to be 12k, to fit in RAM of embedded platforms.

Reduce log_buf size to be 12k, to fit in RAM of embedded platforms.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/10f7197f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/10f7197f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/10f7197f

Branch: refs/heads/master
Commit: 10f7197f339212986cd61db77b6f880d2a8b66b6
Parents: de3c2d9
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Wed Nov 18 16:05:24 2015 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Wed Nov 18 16:05:24 2015 -0800

----------------------------------------------------------------------
 project/blinky/src/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/10f7197f/project/blinky/src/main.c
----------------------------------------------------------------------
diff --git a/project/blinky/src/main.c b/project/blinky/src/main.c
index b5d5fb1..9296193 100755
--- a/project/blinky/src/main.c
+++ b/project/blinky/src/main.c
@@ -47,7 +47,7 @@ os_stack_t shell_stack[SHELL_TASK_STACK_SIZE];
 struct cbmem log_mem;
 struct ul_handler log_mem_handler;
 struct util_log my_log;
-uint8_t log_buf[64 * 1024];
+uint8_t log_buf[12 * 1024];
 
 static volatile int g_task2_loops;
 
@@ -140,7 +140,7 @@ main(void)
     uint8_t entry[128];
     int rc;
 
-    cbmem_init(&log_mem, log_buf, 64 * 1024);
+    cbmem_init(&log_mem, log_buf, sizeof(log_buf));
     util_log_cbmem_handler_init(&log_mem_handler, &log_mem);
     util_log_register("log", &my_log, &log_mem_handler);