diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-10-17 15:31:58 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-10-27 20:50:53 +0300 |
commit | d094a0734cee439fc8483118694079c85b1cc3db (patch) | |
tree | b6a5c9e77308a964f09b721252d46443807e53f4 /doc/develop | |
parent | 993a06b6144d54ae2ad83cc25c18acb9d1720ad0 (diff) | |
download | u-boot-d094a0734cee439fc8483118694079c85b1cc3db.tar.xz |
log: allow for message continuation
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@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'doc/develop')
-rw-r--r-- | doc/develop/logging.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/develop/logging.rst b/doc/develop/logging.rst index 28340a4aac..528280c3e8 100644 --- a/doc/develop/logging.rst +++ b/doc/develop/logging.rst @@ -38,6 +38,9 @@ There are a number logging levels available, in increasing order of verbosity: * LOGL_DEBUG_CONTENT - Debug message showing full message content * LOGL_DEBUG_IO - Debug message showing hardware I/O access +To continue a log message in a separate call of function log() use + +* LOGL_CONT - Use same log level as in previous call Logging category ---------------- @@ -56,6 +59,9 @@ The following main categories are defined: * LOGC_DT - Related to device tree control * LOGC_EFI - Related to EFI implementation +To continue a log message in a separate call of function log() use + +* LOGC_CONT - Use same category as in previous call Enabling logging ---------------- |