This is an automated email from the ASF dual-hosted git repository.

marko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 3530e75990ec7e95ecb66c396c3620812a0827c7
Author: Nolan Lau <no...@juul.com>
AuthorDate: Mon Oct 14 19:11:46 2019 -0700

    Update function & variable names to be more descriptive.
---
 sys/log/full/include/log/log.h | 4 ++--
 sys/log/full/src/log.c         | 4 ++--
 sys/log/full/src/log_fcb.c     | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/sys/log/full/include/log/log.h b/sys/log/full/include/log/log.h
index 853446f..dd0666e 100644
--- a/sys/log/full/include/log/log.h
+++ b/sys/log/full/include/log/log.h
@@ -214,7 +214,7 @@ struct log {
     void *l_arg;
     STAILQ_ENTRY(log) l_next;
     log_append_cb *l_append_cb;
-    log_notify_rotate_cb *l_notify_erase_done_cb;
+    log_notify_rotate_cb *l_rotate_notify_cb;
     uint8_t l_level;
     uint16_t l_max_entry_len;   /* Log body length; if 0 disables check. */
 #if !MYNEWT_VAL(LOG_GLOBAL_IDX)
@@ -706,7 +706,7 @@ int log_storage_info(struct log *log, struct 
log_storage_info *info);
  * @param cb    The callback function to be executed.
  */
 void
-log_set_rotate_done_cb(struct log *log, log_notify_rotate_cb *cb);
+log_set_rotate_notify_cb(struct log *log, log_notify_rotate_cb *cb);
 
 #if MYNEWT_VAL(LOG_STORAGE_WATERMARK)
 /**
diff --git a/sys/log/full/src/log.c b/sys/log/full/src/log.c
index 32bd7ff..29b56c8 100644
--- a/sys/log/full/src/log.c
+++ b/sys/log/full/src/log.c
@@ -459,9 +459,9 @@ log_hdr_len(const struct log_entry_hdr *hdr)
 }
 
 void
-log_set_rotate_done_cb(struct log *log, log_notify_rotate_cb *cb)
+log_set_rotate_notify_cb(struct log *log, log_notify_rotate_cb *cb)
 {
-    log->l_notify_erase_done_cb = cb;
+    log->l_rotate_notify_cb = cb;
 }
 
 static int
diff --git a/sys/log/full/src/log_fcb.c b/sys/log/full/src/log_fcb.c
index e708b65..fc7809f 100644
--- a/sys/log/full/src/log_fcb.c
+++ b/sys/log/full/src/log_fcb.c
@@ -160,8 +160,8 @@ log_fcb_start_append(struct log *log, int len, struct 
fcb_entry *loc)
 #endif
 
         /* Check to see if the active region is in the scratch region */
-        if (log->l_notify_erase_done_cb != NULL) {
-            log->l_notify_erase_done_cb(log);
+        if (log->l_rotate_notify_cb != NULL) {
+            log->l_rotate_notify_cb(log);
         }
 
 #if MYNEWT_VAL(LOG_FCB_BOOKMARKS)

Reply via email to