aboutsummaryrefslogtreecommitdiff
path: root/include/asm-generic
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-10-17 14:31:57 +0200
committerTom Rini <trini@konsulko.com>2020-10-27 13:50:53 -0400
commit993a06b6144d54ae2ad83cc25c18acb9d1720ad0 (patch)
treee62aa87d0f033449d3d182edb4ad328c4c1a847a /include/asm-generic
parent986c980c8250849d9394fdf377a3de75edb11888 (diff)
downloadu-boot-993a06b6144d54ae2ad83cc25c18acb9d1720ad0.zip
u-boot-993a06b6144d54ae2ad83cc25c18acb9d1720ad0.tar.gz
u-boot-993a06b6144d54ae2ad83cc25c18acb9d1720ad0.tar.bz2
log: move processing_msg to global data
Replace the static variable processing_msg by a field in the global data. Make the field bool at it can only be true or false. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/global_data.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
index ebb740d..db83f59 100644
--- a/include/asm-generic/global_data.h
+++ b/include/asm-generic/global_data.h
@@ -363,6 +363,14 @@ struct global_data {
* &enum log_fmt defines the bits of the bit mask.
*/
int log_fmt;
+
+ /**
+ * @processing_msg: a log message is being processed
+ *
+ * This flag is used to suppress the creation of additional messages
+ * while another message is being processed.
+ */
+ bool processing_msg;
#endif
#if CONFIG_IS_ENABLED(BLOBLIST)
/**