mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-15 17:34:43 +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",
|
||||
"expo",
|
||||
"console",
|
||||
"test",
|
||||
};
|
||||
|
||||
_Static_assert(ARRAY_SIZE(log_cat_name) == LOGC_COUNT - LOGC_NONE,
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue