u-boot/test/log
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
..
cont_test.c log: Handle line continuation 2021-03-12 17:41:35 -05:00
log_filter.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
log_test.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
log_ut.c test: Add a macros for finding tests in linker_lists 2021-03-12 09:57:30 -05:00
Makefile test: log: Rename log main test file to log_ut.c 2021-03-12 09:57:30 -05:00
nolog_test.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
pr_cont_test.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
syslog_test_ndebug.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
syslog_test.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
syslog_test.h test: log: Convert log_test from python to C 2020-10-30 10:55:26 -04:00