Christopher Collins created MYNEWT-124:
------------------------------------------

             Summary: Log buffer issues
                 Key: MYNEWT-124
                 URL: https://issues.apache.org/jira/browse/MYNEWT-124
             Project: Mynewt
          Issue Type: Bug
          Components: Misc
            Reporter: Christopher Collins
            Assignee: Sterling Hughes
             Fix For: v0_8_0_beta2


When a message is written to a log, some buffers are allocated on the stack in 
various places in the code.  This results in two issues:

# Undue stack-size requirements placed on any task which uses sys/log.
# Hard limit placed on the maximum length of a log line.

There are two functions which exhibit this behavior:
* log_printf (LOG_PRINTF_MAX_ENTRY_LEN = 128)
* console_vprintf (CONS_OUTPUT_MAX_LINE = 128)

I do not have a proposed fix.  I believe Marko suggested streaming bytes to the 
destination, rather than writing to an intermediate buffer.




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

Reply via email to