This is an automated email from the ASF dual-hosted git repository. marko pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git.
from cae939f sensors/bma253: Fix uninitialized variable usage new 70bb26d fs/fcb2; change data pointer to be const with fcb_write(). new c29e06d sys/log; support FCB2 as backing store. new 43da6d7 fs/fcb2; add fcb_getprev() to walk backwards within FCB. new 06474c0 sys/log/full; check if log index is > last entry before starting walk of FCB2 area. new 887b8e9 sys/log; bring in log specific data structures from fs/fcb. new 22f5f1a sys/log; enable bookmarks with FCB2. new 1bfeb99 sys/reboot; can run when LOG_FCB2 has been selected. new 661a2c8 sys/config & sys/log; use different magic numbers when using FCB vs FCB2. new fba8e26 sys/log; fix incorrect if statement in log_fcb2_copy(). new 40c8f8e sys/log; simplify log_fcb2_copy(), no need to traverse the fcb to start the copy. new eead0c8 sys/reboot; fix broken build when LOG_FCB is set. new 87208eb fs/fcb2; do {} while(1) -> while(1) {} new c223a3d sys/log/full; FCB2 watermarks & storage info. Fix return code from successful call to fcb_set_watermark(). Update incorrect doxygen comments. The 13 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: fs/fcb/include/fcb/fcb.h | 107 +---- fs/fcb/src/fcb.c | 4 +- fs/fcb2/include/fcb/fcb.h | 25 +- fs/fcb2/selftest/src/fcb_test.c | 2 + fs/fcb2/selftest/src/testcases/fcb_test_getprev.c | 140 +++++++ .../selftest/src/testcases/fcb_test_last_of_n.c | 34 +- fs/fcb2/src/fcb.c | 27 +- fs/fcb2/src/fcb_append.c | 2 +- fs/fcb2/src/fcb_elem_info.c | 2 +- fs/fcb2/src/fcb_getnext.c | 6 - fs/fcb2/src/fcb_getprev.c | 102 +++++ fs/fcb2/src/fcb_priv.h | 1 - sys/config/syscfg.yml | 2 + sys/log/common/include/log_common/log_common.h | 5 - sys/log/full/include/log/log.h | 7 +- sys/log/full/include/log/log_fcb.h | 136 ++++++ sys/log/full/pkg.yml | 5 + .../full/selftest/{align8 => fcb2_align1}/pkg.yml | 8 +- .../src/log_test_align1.c | 0 .../selftest/{align1 => fcb2_align1}/syscfg.yml | 2 +- .../selftest/{align2 => fcb2_bookmarks}/pkg.yml | 9 +- .../src/log_test_fcb_bookmarks.c | 0 .../src/log_test_fcb_bookmarks.h | 0 .../src/log_test_fcb_bookmarks_util.c | 47 +-- .../src/testcases/s0_l1_b0_p100.c | 0 .../src/testcases/s0_l1_b1_p100.c | 0 .../src/testcases/s100_l500_b10_p2000.c | 0 .../src/testcases/s10_l100_b10_p2000.c | 0 .../src/testcases/s10_l100_b1_p200.c | 0 .../{fcb_bookmarks => fcb2_bookmarks}/syscfg.yml | 3 +- .../selftest/{align8 => fcb2_watermarks}/pkg.yml | 8 +- .../src/log_test_fcb_watermarks.c} | 15 +- .../fcb2_watermarks/src/log_test_fcb_watermarks.h | 24 +- .../src/log_test_fcb_watermarks_util.c | 199 +++++++++ .../src/testcases/test_s0.c} | 11 +- .../src/testcases/test_s10.c} | 9 +- .../src/testcases/test_s100.c} | 11 +- .../{fcb_bookmarks => fcb2_watermarks}/syscfg.yml | 7 +- .../src/log_test_fcb_bookmarks_util.c | 6 +- sys/log/full/selftest/util/src/log_test_util.c | 29 +- sys/log/full/src/log.c | 6 +- sys/log/full/src/log_fcb.c | 75 ++-- sys/log/full/src/{log_fcb.c => log_fcb2.c} | 464 ++++++++++++--------- .../log/full/src/log_fcb_bmark.c | 60 +-- sys/log/full/syscfg.yml | 10 +- sys/reboot/pkg.yml | 5 +- sys/reboot/src/log_reboot.c | 27 +- sys/reboot/syscfg.yml | 2 +- 48 files changed, 1112 insertions(+), 532 deletions(-) create mode 100644 fs/fcb2/selftest/src/testcases/fcb_test_getprev.c create mode 100644 fs/fcb2/src/fcb_getprev.c create mode 100644 sys/log/full/include/log/log_fcb.h copy sys/log/full/selftest/{align8 => fcb2_align1}/pkg.yml (90%) copy sys/log/full/selftest/{align1_imghash => fcb2_align1}/src/log_test_align1.c (100%) copy sys/log/full/selftest/{align1 => fcb2_align1}/syscfg.yml (98%) copy sys/log/full/selftest/{align2 => fcb2_bookmarks}/pkg.yml (87%) copy sys/log/full/selftest/{fcb_bookmarks => fcb2_bookmarks}/src/log_test_fcb_bookmarks.c (100%) copy sys/log/full/selftest/{fcb_bookmarks => fcb2_bookmarks}/src/log_test_fcb_bookmarks.h (100%) copy sys/log/full/selftest/{fcb_bookmarks => fcb2_bookmarks}/src/log_test_fcb_bookmarks_util.c (85%) copy sys/log/full/selftest/{fcb_bookmarks => fcb2_bookmarks}/src/testcases/s0_l1_b0_p100.c (100%) copy sys/log/full/selftest/{fcb_bookmarks => fcb2_bookmarks}/src/testcases/s0_l1_b1_p100.c (100%) copy sys/log/full/selftest/{fcb_bookmarks => fcb2_bookmarks}/src/testcases/s100_l500_b10_p2000.c (100%) copy sys/log/full/selftest/{fcb_bookmarks => fcb2_bookmarks}/src/testcases/s10_l100_b10_p2000.c (100%) copy sys/log/full/selftest/{fcb_bookmarks => fcb2_bookmarks}/src/testcases/s10_l100_b1_p200.c (100%) copy sys/log/full/selftest/{fcb_bookmarks => fcb2_bookmarks}/syscfg.yml (96%) copy sys/log/full/selftest/{align8 => fcb2_watermarks}/pkg.yml (90%) copy sys/log/full/selftest/{align2/src/log_test_align2.c => fcb2_watermarks/src/log_test_fcb_watermarks.c} (79%) copy encoding/base64/selftest/src/encoding_test_priv.h => sys/log/full/selftest/fcb2_watermarks/src/log_test_fcb_watermarks.h (71%) create mode 100644 sys/log/full/selftest/fcb2_watermarks/src/log_test_fcb_watermarks_util.c copy sys/log/full/selftest/{fcb_bookmarks/src/testcases/s0_l1_b0_p100.c => fcb2_watermarks/src/testcases/test_s0.c} (81%) copy sys/log/full/selftest/{fcb_bookmarks/src/testcases/s10_l100_b10_p2000.c => fcb2_watermarks/src/testcases/test_s10.c} (83%) copy sys/log/full/selftest/{fcb_bookmarks/src/testcases/s100_l500_b10_p2000.c => fcb2_watermarks/src/testcases/test_s100.c} (81%) copy sys/log/full/selftest/{fcb_bookmarks => fcb2_watermarks}/syscfg.yml (86%) copy sys/log/full/src/{log_fcb.c => log_fcb2.c} (57%) rename fs/fcb/src/fcb_bmark.c => sys/log/full/src/log_fcb_bmark.c (53%)