Skip to content
Commit c59f45ee authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

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.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent dfd2390d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment