u-boot/test/log
Simon Glass 52d3df7fef log: Allow LOG_DEBUG to always enable log output
At present if CONFIG_LOG enabled, putting LOG_DEBUG at the top of a file
(before log.h inclusion) causes _log() to be executed for every log()
call, regardless of the build- or run-time logging level.

However there is no guarantee that the log record will actually be
displayed. If the current log level is lower than LOGL_DEBUG then it will
not be.

Add a way to signal that the log record should always be displayed and
update log_passes_filters() to handle this.

With the new behaviour, log_debug() will always log if LOG_DEBUG is
enabled.

Move log_test_syslog_nodebug() into its own file since it cannot be made
to work where it is, with LOG_DEBUG defined.

Signed-off-by: Simon Glass <sjg@chromium.org>
2020-10-10 16:49:58 -04:00
..
log_test.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
Makefile log: Allow LOG_DEBUG to always enable log output 2020-10-10 16:49:58 -04:00
nolog_test.c test: fix naming of test functions in the log test suite 2020-05-08 18:29:16 -04:00
syslog_test.c log: Allow LOG_DEBUG to always enable log output 2020-10-10 16:49:58 -04:00
syslog_test.h log: Allow LOG_DEBUG to always enable log output 2020-10-10 16:49:58 -04:00
syslog_test_ndebug.c log: Allow LOG_DEBUG to always enable log output 2020-10-10 16:49:58 -04:00
test-main.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00