aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass2020-09-27 18:46:13 -0600
committerTom Rini2020-10-22 09:53:31 -0400
commit8021296a71aa38b65c8568207d30127d635aba6b (patch)
tree9813fa1c5291baa7a5974d3aafe4a460dec21dd4
parentb90daf2743b38022bea8727ede867ad63e971db2 (diff)
log: Add missing category names
Add some category names that were missed in recent changes. Update the comment as a reminder. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/log.c5
-rw-r--r--include/log.h4
2 files changed, 8 insertions, 1 deletions
diff --git a/common/log.c b/common/log.c
index 1b10f6f180a..b7a6ebe2987 100644
--- a/common/log.c
+++ b/common/log.c
@@ -21,6 +21,11 @@ static const char *log_cat_name[LOGC_COUNT - LOGC_NONE] = {
"driver-model",
"device-tree",
"efi",
+ "alloc",
+ "sandbox",
+ "bloblist",
+ "devres",
+ "acpi",
};
static const char *log_level_name[LOGL_COUNT] = {
diff --git a/include/log.h b/include/log.h
index 4acc087b2e9..6de5e611c7c 100644
--- a/include/log.h
+++ b/include/log.h
@@ -42,7 +42,9 @@ enum log_level_t {
/**
* Log categories supported. Most of these correspond to uclasses (i.e.
- * enum uclass_id) but there are also some more generic categories
+ * enum uclass_id) but there are also some more generic categories.
+ *
+ * Remember to update log_cat_name[] after adding a new category.
*/
enum log_category_t {
LOGC_FIRST = 0, /* First part mirrors UCLASS_... */