diff options
author | Sean Anderson <seanga2@gmail.com> | 2020-10-28 02:55:34 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-10-30 17:56:10 +0300 |
commit | 1c593a105abd3ab5f551e04fbb427a56a4120cc9 (patch) | |
tree | 66b223ba52c199d4d3275282523c507abbc88348 /include/log.h | |
parent | fed9c2fbc941660f3a6ea25013f6501d4cff8f86 (diff) | |
download | u-boot-1c593a105abd3ab5f551e04fbb427a56a4120cc9.tar.xz |
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/log.h')
-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 94ac729d9c..745e774c50 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); |