[PATCH v2 2/3] log: allow for message continuation
Simon Glass
sjg at chromium.org
Tue Oct 27 05:52:11 CET 2020
On Sat, 17 Oct 2020 at 06:32, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> Some drivers use macro pr_cont() for continuing a message sent via printk.
> Hence if we want to convert printk messaging to using the logging system,
> we must support continuation of log messages too.
>
> As pr_cont() does not provide a message level we need a means of
> remembering the last log level.
>
> With the patch a pseudo log level LOGL_CONT as well as a pseudo log
> category LOGC_CONT are introduced. Using these results in the application
> of the same log level and category as in the previous log message.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
> v2:
> replace static variables by global data
> ---
> common/log.c | 23 ++++++++++++++++++-----
> doc/develop/logging.rst | 6 ++++++
> include/asm-generic/global_data.h | 12 ++++++++++++
> include/log.h | 2 ++
> 4 files changed, 38 insertions(+), 5 deletions(-)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list