aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-09-01 16:26:18 -0600
committerTom Rini <trini@konsulko.com>2024-09-18 13:00:59 -0600
commit90afded462fd5aa01c114f5e40c34bb5b23deba7 (patch)
treed9bf46fcd60cb9d7d75e9ec1c328ae254d3a0f0a /common
parent4048219957fec6da92def7ca88ebf3836574856e (diff)
downloadu-boot-90afded462fd5aa01c114f5e40c34bb5b23deba7.tar.gz
log: Add a new log category for the console
Add a new category which covers the console, including the stdio drivers. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/console.c2
-rw-r--r--common/log.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/common/console.c b/common/console.c
index 85f627297ed..09d4b51f675 100644
--- a/common/console.c
+++ b/common/console.c
@@ -4,6 +4,8 @@
* Paolo Scaffardi, AIRVENT SAM s.p.a - RIMINI(ITALY), arsenio@tin.it
*/
+#define LOG_CATEGORY LOGC_CONSOLE
+
#include <console.h>
#include <debug_uart.h>
#include <display_options.h>
diff --git a/common/log.c b/common/log.c
index dfee250b158..b83a6618900 100644
--- a/common/log.c
+++ b/common/log.c
@@ -31,6 +31,7 @@ static const char *const log_cat_name[] = {
"event",
"fs",
"expo",
+ "console",
};
_Static_assert(ARRAY_SIZE(log_cat_name) == LOGC_COUNT - LOGC_NONE,