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 2019/07/31 23:16:56 UTC
[mynewt-core] branch master updated: log: configurability for log
read watermark update
This is an automated email from the ASF dual-hosted git repository.
ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new ee1dd73 log: configurability for log read watermark update
ee1dd73 is described below
commit ee1dd7329331d56f1dea2640bb7c9699b1db5dec
Author: JustineKH <ju...@juul.com>
AuthorDate: Wed Jul 31 15:40:26 2019 -0700
log: configurability for log read watermark update
---
sys/log/full/src/log_nmgr.c | 2 +-
sys/log/full/syscfg.yml | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/sys/log/full/src/log_nmgr.c b/sys/log/full/src/log_nmgr.c
index bad3efb..2abdf86 100644
--- a/sys/log/full/src/log_nmgr.c
+++ b/sys/log/full/src/log_nmgr.c
@@ -466,7 +466,7 @@ log_nmgr_read(struct mgmt_cbuf *cb)
rc = OS_EINVAL;
}
-#if MYNEWT_VAL(LOG_STORAGE_WATERMARK)
+#if MYNEWT_VAL(LOG_READ_WATERMARK_UPDATE)
log_set_watermark(log, index);
#endif
diff --git a/sys/log/full/syscfg.yml b/sys/log/full/syscfg.yml
index 50f6e75..a3f4569 100644
--- a/sys/log/full/syscfg.yml
+++ b/sys/log/full/syscfg.yml
@@ -122,6 +122,12 @@ syscfg.defs:
0 Initializes watermarks to unknown (0xffffffff)
value: 1
+ LOG_READ_WATERMARK_UPDATE:
+ description: >
+ Enables update of the log watermark after a log read
+ value: 0
+ restrictions: LOG_STORAGE_WATERMARK
+
LOG_SYSINIT_STAGE_MAIN:
description: >
Primary sysinit stage for logging functionality.