You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "Christopher Collins (JIRA)" <ji...@apache.org> on 2016/09/01 00:29:20 UTC

[jira] [Created] (MYNEWT-380) Only one fcb log supported

Christopher Collins created MYNEWT-380:
------------------------------------------

             Summary: Only one fcb log supported
                 Key: MYNEWT-380
                 URL: https://issues.apache.org/jira/browse/MYNEWT-380
             Project: Mynewt
          Issue Type: Bug
            Reporter: Christopher Collins
             Fix For: v1_0_0_beta1


sys/log/src/log_fcb.c contains a global fcb_log struct that is used for the reboot log.  An application may want to use several FCB logs, which is currently not possible.

A possible solution is to change log_fcb_handler_init() as follows:

From:
{code}
int
log_fcb_handler_init(struct log_handler *handler, struct fcb *fcb, uint8_t entries)
{code}

To:
{code}
int
log_fcb_handler_init(struct log_handler *handler, struct fcb_log *fcb_log, uint8_t entries)
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)