summaryrefslogtreecommitdiff
path: root/lib/console.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2013-10-04 13:54:35 -0400
committerPeter Jones <pjones@redhat.com>2013-10-04 13:54:35 -0400
commit29d9c7c32799b3f9d95c8c971af827a049931801 (patch)
tree54be09e5ed7643732ff12e6ca39334a123cd9412 /lib/console.c
parent4ab978a3697c88827f4099fe5774031caf5baf44 (diff)
downloadefi-boot-shim-29d9c7c32799b3f9d95c8c971af827a049931801.tar.gz
efi-boot-shim-29d9c7c32799b3f9d95c8c971af827a049931801.zip
Put SHIM_VERBOSE under shim's guid, not global.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'lib/console.c')
-rw-r--r--lib/console.c6
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;