From: Simon Glass Date: Sun, 1 Sep 2024 22:26:18 +0000 (-0600) Subject: log: Add a new log category for the console X-Git-Url: http://git.dujemihanovic.xyz/%22/img/sics.gif/%22/static/git-favicon.png?a=commitdiff_plain;h=90afded462fd5aa01c114f5e40c34bb5b23deba7;p=u-boot.git 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 --- diff --git a/common/console.c b/common/console.c index 85f627297e..09d4b51f67 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 #include #include diff --git a/common/log.c b/common/log.c index dfee250b15..b83a661890 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, diff --git a/include/log.h b/include/log.h index fc0d598447..2b86c7da3d 100644 --- a/include/log.h +++ b/include/log.h @@ -104,6 +104,8 @@ enum log_category_t { LOGC_FS, /** @LOGC_EXPO: Related to expo handling */ LOGC_EXPO, + /** @LOGC_CONSOLE: Related to the console and stdio */ + LOGC_CONSOLE, /** @LOGC_COUNT: Number of log categories */ LOGC_COUNT, /** @LOGC_END: Sentinel value for lists of log categories */