Message ID | 20180122191045.7720-1-xypron.glpk@gmx.de |
---|---|
State | Accepted |
Commit | 1973b381a1b3545783c3238080f566746579e923 |
Delegated to: | Simon Glass |
Headers | show |
Series | [U-Boot,v2,1/1] log: add category LOGC_EFI | expand |
On 22 January 2018 at 12:10, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote: > 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> > --- > v2 > rebase on git://git.denx.de/u-boot-dm.git, branch log-working > add category name > --- > common/log.c | 1 + > doc/README.log | 1 + > include/log.h | 1 + > 3 files changed, 3 insertions(+) Reviewed-by: Simon Glass <sjg@chromium.org>
On 26 January 2018 at 08:25, Simon Glass <sjg@chromium.org> wrote: > On 22 January 2018 at 12:10, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote: >> 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> >> --- >> v2 >> rebase on git://git.denx.de/u-boot-dm.git, branch log-working >> add category name >> --- >> common/log.c | 1 + >> doc/README.log | 1 + >> include/log.h | 1 + >> 3 files changed, 3 insertions(+) > > Reviewed-by: Simon Glass <sjg@chromium.org> Applied to u-boot-dm, thanks!
diff --git a/common/log.c b/common/log.c index 7559d74e90..02a98685d0 100644 --- a/common/log.c +++ b/common/log.c @@ -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] = { diff --git a/doc/README.log b/doc/README.log index 2abaee0c10..dc9e2deec5 100644 --- a/doc/README.log +++ b/doc/README.log @@ -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 diff --git a/include/log.h b/include/log.h index 68368d5cf1..20dc5289c7 100644 --- a/include/log.h +++ b/include/log.h @@ -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,
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> --- v2 rebase on git://git.denx.de/u-boot-dm.git, branch log-working add category name --- common/log.c | 1 + doc/README.log | 1 + include/log.h | 1 + 3 files changed, 3 insertions(+)