log: add category LOGC_EFI
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>
diff --git a/common/log.c b/common/log.c
index 1b1b98e..680a60f 100644
--- a/common/log.c
+++ b/common/log.c
@@ -21,6 +21,7 @@
"core",
"driver-model",
"device-tree",
+ "efi",
};
static const char *log_level_name[LOGL_COUNT] = {
diff --git a/doc/README.log b/doc/README.log
index 2abaee0..dc9e2de 100644
--- a/doc/README.log
+++ b/doc/README.log
@@ -51,6 +51,7 @@
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
diff --git a/include/log.h b/include/log.h
index 68368d5..20dc528 100644
--- a/include/log.h
+++ b/include/log.h
@@ -46,6 +46,7 @@
LOGC_CORE,
LOGC_DM, /* Core driver-model */
LOGC_DT, /* Device-tree */
+ LOGL_EFI, /* EFI implementation */
LOGC_COUNT,
LOGC_END,