]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
bootstd: Add a separate log category for expo
authorSimon Glass <sjg@chromium.org>
Thu, 1 Jun 2023 16:22:43 +0000 (10:22 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 14 Jul 2023 16:54:51 +0000 (12:54 -0400)
This feature is different enough from bootstd that it probably deserves
its own log category. It cannot use a uclass since it is not a device.

Add a new category.

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

index e7c81a3983d3e2134df8bff5c02eb552fb1fedfc..8b966b6c793c2690b59cc2a1c6fc021542988c72 100644 (file)
@@ -6,6 +6,8 @@
  * Written by Simon Glass <sjg@chromium.org>
  */
 
+#define LOG_CATEGORY   LOGC_EXPO
+
 #include <common.h>
 #include <dm.h>
 #include <expo.h>
index 1383be20321f9c141c8e9a50ddf7d999e767ec12..43c978e6ee803738ce9585f804888de8451efd08 100644 (file)
@@ -6,6 +6,8 @@
  * Written by Simon Glass <sjg@chromium.org>
  */
 
+#define LOG_CATEGORY   LOGC_EXPO
+
 #include <common.h>
 #include <dm.h>
 #include <expo.h>
index 9ee911f2fa3894e0cd3d8299cba56641cb987cb2..8b04d44031393dcc542252e87beeb2ebb0908494 100644 (file)
@@ -6,7 +6,7 @@
  * Written by Simon Glass <sjg@chromium.org>
  */
 
-#define LOG_CATEGORY   LOGC_BOOT
+#define LOG_CATEGORY   LOGC_EXPO
 
 #include <common.h>
 #include <dm.h>
index 7cfc49bc28a58035991c18f65143ba4a76d42d28..6f02a25c5931950582aa9f0d83f8bbabc6363d38 100644 (file)
@@ -31,6 +31,7 @@ static const char *const log_cat_name[] = {
        "boot",
        "event",
        "fs",
+       "expo",
 };
 
 _Static_assert(ARRAY_SIZE(log_cat_name) == LOGC_COUNT - LOGC_NONE,
index 3bab40b617158a9ce21a3ff75d13a254226c7f7b..6e84f080ef3d1e763b55e08b548585fa34f019fe 100644 (file)
@@ -102,6 +102,8 @@ enum log_category_t {
        LOGC_EVENT,
        /** @LOGC_FS: Related to filesystems */
        LOGC_FS,
+       /** @LOGC_EXPO: Related to expo handling */
+       LOGC_EXPO,
        /** @LOGC_COUNT: Number of log categories */
        LOGC_COUNT,
        /** @LOGC_END: Sentinel value for lists of log categories */