]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
log: Add missing category names
authorSimon Glass <sjg@chromium.org>
Mon, 28 Sep 2020 00:46:13 +0000 (18:46 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2020 13:53:31 +0000 (09:53 -0400)
Add some category names that were missed in recent changes. Update the
comment as a reminder.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/log.c
include/log.h

index 1b10f6f180a62f62b1fe8d7964c320d552b0be61..b7a6ebe298756e884e3d4d17e4a084184714f5ae 100644 (file)
@@ -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] = {
index 4acc087b2e952968ad2f61ddf2a5cf026c0d71e1..6de5e611c7cfbd53ac4990ab9309bd733d0e938c 100644 (file)
@@ -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_... */