Re: [PATCH v2 1/2] log: Allow LOG_DEBUG to always enable log output

2020-10-11 Thread Tom Rini
On Sat, Sep 12, 2020 at 11:13:34AM -0600, Simon Glass wrote: > 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 guara

[PATCH v2 1/2] log: Allow LOG_DEBUG to always enable log output

2020-09-12 Thread Simon Glass
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