[PATCH v2 6/6] log: Convert log values to printf() if not enabled
Simon Glass
sjg at chromium.org
Sun Mar 14 21:32:02 CET 2021
Hi Tom,
On Sun, 14 Mar 2021 at 12:33, Tom Rini <trini at konsulko.com> wrote:
>
> On Wed, Jan 20, 2021 at 08:10:57PM -0700, Simon Glass wrote:
>
> > At present if logging not enabled, log_info() becomes a nop. But we want
> > log output at the 'info' level to be akin to printf(). Update the macro to
> > pass the output straight to printf() in this case.
> >
> > This mimics the behaviour for the log_...() macros like log_debug() and
> > log_info(), so we can drop the special case for these.
> >
> > Add new tests to cover this case.
> > Signed-off-by: Simon Glass <sjg at chromium.org>
> > ---
> >
> > Changes in v2:
> > - Update commit message and cover letter to mention log_...() macros
> > - Add a test for !CONFIG_LOG
> > - Update log() to (effectively) call debug() for log_level == LOGL_DEBUG
>
> As is, this last patch in the series causes tests to fail on sandbox.
> I'm re-testing 1-5 by themselves right now.
OK thanks, great to see this. I'll revisit once things land.
Regrads,
Simon
More information about the U-Boot
mailing list