commit | 8eaaedbcea7c967d45fdce3630f97277e0a6af9a | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sat May 08 13:46:54 2021 -0600 |
committer | Tom Rini <trini@konsulko.com> | Tue Jun 08 11:39:09 2021 -0400 |
tree | 338db8b14138d67a2969b677258873c30aa8f03e | |
parent | 2786707feb66be7a92110aaa337e2d5fbc63f71e [diff] |
log: Convert log values to printf() if not enabled 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@chromium.org>