diff options
author | Sean Anderson <seanga2@gmail.com> | 2020-10-27 19:55:34 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-10-30 10:56:10 -0400 |
commit | 1c593a105abd3ab5f551e04fbb427a56a4120cc9 (patch) | |
tree | 66b223ba52c199d4d3275282523c507abbc88348 /include | |
parent | fed9c2fbc941660f3a6ea25013f6501d4cff8f86 (diff) | |
download | u-boot-1c593a105abd3ab5f551e04fbb427a56a4120cc9.zip u-boot-1c593a105abd3ab5f551e04fbb427a56a4120cc9.tar.gz u-boot-1c593a105abd3ab5f551e04fbb427a56a4120cc9.tar.bz2 |
cmd: log: Add commands to list categories and drivers
This allows users to query which categories and drivers are available on
their system. This allows them to construct filter-add commands without
(e.g.) adjusting the log format to show categories and drivers.
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/log.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/log.h b/include/log.h index 94ac729..745e774 100644 --- a/include/log.h +++ b/include/log.h @@ -411,8 +411,9 @@ struct log_filter { * log_get_cat_name() - Get the name of a category * * @cat: Category to look up - * @return category name (which may be a uclass driver name) if found, or - * "<invalid>" if invalid, or "<missing>" if not found + * @return: category name (which may be a uclass driver name) if found, or + * "<invalid>" if invalid, or "<missing>" if not found. All error + * responses begin with '<'. */ const char *log_get_cat_name(enum log_category_t cat); |