Skip to content
  1. May 12, 2017
    • Gregory Nutt's avatar
      syslog: There is yet another place where the output can get split. That is... · 1c985952
      Gregory Nutt authored
      syslog:  There is yet another place where the output can get split.  That is in syslog_dev_write():  It will break up the stream to insert a CR before the LF.  This can that can be avoid be generating the CR-LF sequence in the buffer and then detecting and ignoring valid CR-LF sequences, rather than expecting syslog_dev_write() to insert the CR in this case.
      
      I don't like the idea that syslog_dev_write() still scans the entire output buffer to expand CR-LF sequence.  This seems really wasteful, especially in this case where we can be sure that the is no CR or LF without a matching LF or CR.  Bu, I think, the existing behavior in syslog_dev_write() must be retained because it is needed in other contexts.
      1c985952
    • Gregory Nutt's avatar
      syslog: Avoid flushing syslog_stream buffer, if possible, until lib_vsprintf()... · 0fc068cc
      Gregory Nutt authored
      syslog: Avoid flushing syslog_stream buffer, if possible, until lib_vsprintf() completely parses the format.  This assures that the flush will flush the entire output, even data that may potentially follow the linefeed.  And, in that case, it cannot be interleaved with other devug output.  Suggested by Jussi Kivilinna.
      0fc068cc
  2. May 11, 2017
  3. May 10, 2017
  4. May 09, 2017