Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shim: use SHIM_DEVEL_VERBOSE when built in devel mode #474

Merged
merged 1 commit into from
May 17, 2022

Conversation

vathpela
Copy link
Contributor

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

@vathpela vathpela marked this pull request as ready for review May 13, 2022 19:53
lib/console.c Outdated
@@ -699,9 +699,15 @@ setup_verbosity(VOID)
EFI_STATUS efi_status;
UINT8 *verbose_check_ptr = NULL;
UINTN verbose_check_size;
const CHAR16 * const verbose_var_name =
#ifdef ENABLE_SHIM_DEVEL
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would personally do this as a #define rather than littering the variable initialization with ifdefs, but it's not wrong or anything.

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>
@vathpela vathpela merged commit 803dc5c into rhboot:main May 17, 2022
@vathpela vathpela deleted the more-shim-devel-variable branch May 17, 2022 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants