From c7c416d2b8257d3ee2cf2fc7abf8a4a76593fddf Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sun, 10 Mar 2013 20:49:02 +0100 Subject: [PATCH] distinguish "setup" and "user" mode --- src/efi/gummiboot.c | 2 +- src/setup/setup.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/efi/gummiboot.c b/src/efi/gummiboot.c index 1e2e1c2..0a5ab29 100644 --- a/src/efi/gummiboot.c +++ b/src/efi/gummiboot.c @@ -477,7 +477,7 @@ static VOID dump_status(Config *config, CHAR16 *loaded_image_path) { } if (efivar_get_raw(&global_guid, L"SetupMode", &b, &size) == EFI_SUCCESS) { - Print(L"SetupMode: %s\n", *b > 0 ? L"enabled" : L"disabled"); + Print(L"SetupMode: %s\n", *b > 0 ? L"setup" : L"user"); FreePool(b); } diff --git a/src/setup/setup.c b/src/setup/setup.c index 77c49f6..3d4bc06 100644 --- a/src/setup/setup.c +++ b/src/setup/setup.c @@ -460,7 +460,7 @@ static int status_variables(void) { flag = is_efi_secure_boot_setup_mode(); if (flag >= 0) - printf(" Setup Mode: %s\n", is_efi_secure_boot() ? "enabled" : "disabled"); + printf(" Setup Mode: %s\n", is_efi_secure_boot_setup_mode() ? "setup" : "user"); printf("\n"); } -- 2.7.4