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>
This commit is contained in:
committed by
Tom Rini
parent
993a06b614
commit
d094a0734c
@@ -371,6 +371,18 @@ struct global_data {
|
||||
* while another message is being processed.
|
||||
*/
|
||||
bool processing_msg;
|
||||
/**
|
||||
* @logc_prev: logging category of previous message
|
||||
*
|
||||
* This value is used as logging category for continuation messages.
|
||||
*/
|
||||
int logc_prev;
|
||||
/**
|
||||
* @logl_pref: logging level of the previous message
|
||||
*
|
||||
* This value is used as logging level for continuation messages.
|
||||
*/
|
||||
int logl_prev;
|
||||
#endif
|
||||
#if CONFIG_IS_ENABLED(BLOBLIST)
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user