diff options
| author | Peter Jones <pjones@redhat.com> | 2022-04-27 17:09:01 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2022-05-17 18:16:07 -0400 |
| commit | 803dc5c16e276c26f8400b469370f2a2ca39d7f3 (patch) | |
| tree | e80ded8fb12613baf0e3664809cb1a3c03e6d730 /lib | |
| parent | de879851a4e68bad9cfcefc8aaa39eabfbc7f1df (diff) | |
| download | efi-boot-shim-803dc5c16e276c26f8400b469370f2a2ca39d7f3.tar.gz efi-boot-shim-803dc5c16e276c26f8400b469370f2a2ca39d7f3.zip | |
shim: use SHIM_DEVEL_VERBOSE when built in devel mode
This makes SHIM_VERBOSE / SHIM_DEVEL_VERBOSE work the same way as
SHIM_DEBUG / SHIM_DEVEL_DEBUG when shim is built with ENABLE_SHIM_DEVEL
set.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Makefile | 4 | ||||
| -rw-r--r-- | lib/console.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/Makefile b/lib/Makefile index a4a4855b..f81c5c9b 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -41,6 +41,10 @@ CFLAGS = $(FEATUREFLAGS) \ $(INCLUDES) \ $(DEFINES) +ifneq ($(origin ENABLE_SHIM_DEVEL),undefined) +CFLAGS += -DENABLE_SHIM_DEVEL +endif + lib.a: $(LIBFILES) $(AR) rcs lib.a $(LIBFILES) diff --git a/lib/console.c b/lib/console.c index c256ff23..6bbb8a7c 100644 --- a/lib/console.c +++ b/lib/console.c @@ -732,7 +732,7 @@ setup_verbosity(VOID) UINTN verbose_check_size; verbose_check_size = sizeof(verbose); - efi_status = get_variable(L"SHIM_VERBOSE", &verbose_check_ptr, + efi_status = get_variable(VERBOSE_VAR_NAME, &verbose_check_ptr, &verbose_check_size, SHIM_LOCK_GUID); if (!EFI_ERROR(efi_status)) { verbose = *(__typeof__(verbose) *)verbose_check_ptr; |
