Uploaded image for project: 'Mynewt'
  1. Mynewt
  2. MYNEWT-124

Log buffer issues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • v0_8_0_rel
    • Misc
    • Security Level: Public (Viewable by anyone)
    • None

    Description

      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:

      1. Undue stack-size requirements placed on any task which uses sys/log.
      2. 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.

      Attachments

        Activity

          People

            marko Marko Kiiskila
            ccollins476 Christopher Collins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: