Re: [PATCH 4/4] log: Convert log values to printf() if not enabled

2021-01-16 Thread Heinrich Schuchardt
On 1/14/21 4:30 AM, 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. Signed-off-by: Simon Glass --- doc/develop/logging.rst

Re: [PATCH 4/4] log: Convert log values to printf() if not enabled

2021-01-13 Thread Heinrich Schuchardt
Am 14. Januar 2021 04:30:51 MEZ schrieb Simon Glass : >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. Looking at https://github.com/trini/u-

[PATCH 4/4] log: Convert log values to printf() if not enabled

2021-01-13 Thread Simon Glass
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. Signed-off-by: Simon Glass --- doc/develop/logging.rst | 5 +++-- include/log.h | 12