diff options
| author | Peter Jones <pjones@redhat.com> | 2013-10-04 13:54:35 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2013-10-04 13:54:35 -0400 |
| commit | 3c0ee51ad8f70adb6919d8487a0563bd35777bfe (patch) | |
| tree | 54be09e5ed7643732ff12e6ca39334a123cd9412 | |
| parent | 880f9de4123561d18e5c230b4f6e614c5eab960d (diff) | |
| download | efi-boot-shim-3c0ee51ad8f70adb6919d8487a0563bd35777bfe.tar.gz efi-boot-shim-3c0ee51ad8f70adb6919d8487a0563bd35777bfe.zip | |
Put SHIM_VERBOSE under shim's guid, not global.
Signed-off-by: Peter Jones <pjones@redhat.com>
| -rw-r--r-- | lib/console.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/console.c b/lib/console.c index 1f8f59ca..2fc8db3a 100644 --- a/lib/console.c +++ b/lib/console.c @@ -11,6 +11,8 @@ #include <variables.h> #include <errors.h> +static EFI_GUID SHIM_LOCK_GUID = { 0x605dab50, 0xe046, 0x4300, {0xab, 0xb6, 0x3d, 0xd8, 0x10, 0xdd, 0x8b, 0x23} }; + static int min(int a, int b) { if (a < b) @@ -409,13 +411,13 @@ VOID setup_verbosity(VOID) { EFI_STATUS status; - EFI_GUID global_var = EFI_GLOBAL_VARIABLE; + EFI_GUID guid = SHIM_LOCK_GUID; UINT8 verbose_check; UINTN verbose_check_size; verbose_check_size = 1; status = get_variable(L"SHIM_VERBOSE", (void *)&verbose_check, - &verbose_check_size, global_var); + &verbose_check_size, guid); verbose = 0; if (!EFI_ERROR(status)) verbose = verbose_check; |
