u-boot-brain/doc/develop
Simon Glass 9ad7a6c25c log: Handle line continuation
When multiple log() calls are used which don't end in newline, the
log prefix is prepended multiple times in the same line. This makes the
output look strange.

Fix this by detecting when the previous log record did not end in newline.
In that case, setting a flag.

Drop the unused BUFFSIZE in the test while we are here.

As an example implementation, update log_console to check the flag and
produce the expected output.

Signed-off-by: Simon Glass <sjg@chromium.org>
2021-03-12 17:41:35 -05:00
..
coccinelle.rst doc: Coccinelle: move to HTML doc 2020-07-17 08:45:29 -04:00
commands.rst doc: move README.commands to HTML doc 2020-12-15 09:32:15 +01:00
crash_dumps.rst doc: correct description of crash dumps 2020-07-17 10:47:19 -04:00
global_data.rst doc: global data pointer on x86, x86_64 2020-12-15 09:31:26 +01:00
index.rst doc: Explain briefly how to write new tests 2021-03-12 09:57:31 -05:00
logging.rst log: Handle line continuation 2021-03-12 17:41:35 -05:00
menus.rst doc: move README.menu to HTML documentation 2021-01-23 09:53:46 -05:00
py_testing.rst doc: Explain briefly how to write new tests 2021-03-12 09:57:31 -05:00
testing.rst doc: Explain briefly how to write new tests 2021-03-12 09:57:31 -05:00
tests_sandbox.rst doc: Explain briefly how to write new tests 2021-03-12 09:57:31 -05:00
tests_writing.rst doc: Explain briefly how to write new tests 2021-03-12 09:57:31 -05:00
trace.rst doc: move README.trace to HTML documentation 2020-12-15 09:37:24 +01:00
version.rst Makefile: Provide numeric versions 2021-02-06 19:18:41 +08:00