log: add category LOGC_EFI
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 22 Jan 2018 19:10:45 +0000 (20:10 +0100)
committerSimon Glass <sjg@chromium.org>
Sat, 3 Feb 2018 17:09:28 +0000 (10:09 -0700)
The EFI implementation does not fit into any of the existing categories.

Provide LOGC_EFI so that EFI related message can be filtered.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/log.c
doc/README.log
include/log.h

index 1b1b98e5de63cb090a5f44dd2cd7b7c5f0ec4242..680a60f86e819888e2891085d9a8179f4052d8b3 100644 (file)
@@ -21,6 +21,7 @@ static const char *log_cat_name[LOGC_COUNT - LOGC_NONE] = {
        "core",
        "driver-model",
        "device-tree",
+       "efi",
 };
 
 static const char *log_level_name[LOGL_COUNT] = {
index 2abaee0c10d159413eece3398fba08424fde78cd..dc9e2deec50602e4f8d53bbd00a3ba7b33a30792 100644 (file)
@@ -51,6 +51,7 @@ The following main categories are defined:
    LOGC_BOARD  - Related to board-specific code
    LOGC_CORE   - Related to core driver-model support
    LOGC_DT     - Related to device tree control
+   LOGC_EFI    - Related to EFI implementation
 
 
 Enabling logging
index 68368d5cf1db5c46d99e455e9dff321e387b9759..20dc5289c7140866e33cf0d73db16dd765557d96 100644 (file)
@@ -46,6 +46,7 @@ enum log_category_t {
        LOGC_CORE,
        LOGC_DM,        /* Core driver-model */
        LOGC_DT,        /* Device-tree */
+       LOGL_EFI,       /* EFI implementation */
 
        LOGC_COUNT,
        LOGC_END,