[PATCH 01/15] log: Add a new category for tests
Simon Glass
sjg at chromium.org
Mon Oct 28 13:47:52 CET 2024
In some core test code, no existing categories make sense. Add a new one
for testing.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
common/log.c | 1 +
include/log.h | 2 ++
2 files changed, 3 insertions(+)
diff --git a/common/log.c b/common/log.c
index b83a6618900..c9fe35230d6 100644
--- a/common/log.c
+++ b/common/log.c
@@ -32,6 +32,7 @@ static const char *const log_cat_name[] = {
"fs",
"expo",
"console",
+ "test",
};
_Static_assert(ARRAY_SIZE(log_cat_name) == LOGC_COUNT - LOGC_NONE,
diff --git a/include/log.h b/include/log.h
index bf81a27011f..4f6d6a2c2cf 100644
--- a/include/log.h
+++ b/include/log.h
@@ -106,6 +106,8 @@ enum log_category_t {
LOGC_EXPO,
/** @LOGC_CONSOLE: Related to the console and stdio */
LOGC_CONSOLE,
+ /** @LOGC_TEST: Related to testing */
+ LOGC_TEST,
/** @LOGC_COUNT: Number of log categories */
LOGC_COUNT,
/** @LOGC_END: Sentinel value for lists of log categories */
--
2.43.0
More information about the U-Boot
mailing list