mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 10:24:49 +00:00
log: Add a new category for tests
In some core test code, no existing categories make sense. Add a new one for testing. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
ae3b5928d6
commit
12d583b38f
2 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,7 @@ static const char *const log_cat_name[] = {
|
||||||
"fs",
|
"fs",
|
||||||
"expo",
|
"expo",
|
||||||
"console",
|
"console",
|
||||||
|
"test",
|
||||||
};
|
};
|
||||||
|
|
||||||
_Static_assert(ARRAY_SIZE(log_cat_name) == LOGC_COUNT - LOGC_NONE,
|
_Static_assert(ARRAY_SIZE(log_cat_name) == LOGC_COUNT - LOGC_NONE,
|
||||||
|
|
|
@ -106,6 +106,8 @@ enum log_category_t {
|
||||||
LOGC_EXPO,
|
LOGC_EXPO,
|
||||||
/** @LOGC_CONSOLE: Related to the console and stdio */
|
/** @LOGC_CONSOLE: Related to the console and stdio */
|
||||||
LOGC_CONSOLE,
|
LOGC_CONSOLE,
|
||||||
|
/** @LOGC_TEST: Related to testing */
|
||||||
|
LOGC_TEST,
|
||||||
/** @LOGC_COUNT: Number of log categories */
|
/** @LOGC_COUNT: Number of log categories */
|
||||||
LOGC_COUNT,
|
LOGC_COUNT,
|
||||||
/** @LOGC_END: Sentinel value for lists of log categories */
|
/** @LOGC_END: Sentinel value for lists of log categories */
|
||||||
|
|
Loading…
Add table
Reference in a new issue