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

2020-10-11 Thread Tom Rini
On Sun, Sep 27, 2020 at 09:55: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

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

2020-09-27 Thread Simon Glass
+Tom Rini too On Sun, 27 Sep 2020 at 09:55, 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 g

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

2020-09-27 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