diff options
| author | Peter Jones <pjones@redhat.com> | 2013-09-27 11:32:49 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2013-10-01 14:03:16 -0400 |
| commit | 09a37bbc69f6c5d6c1d081f4f938f34cff412c4f (patch) | |
| tree | f2054578457ceabee0ce5ef805bafac02866dd54 /MokManager.c | |
| parent | f7b849be1c1930a59dab50cf95d315049a2f4267 (diff) | |
| download | efi-boot-shim-09a37bbc69f6c5d6c1d081f4f938f34cff412c4f.tar.gz efi-boot-shim-09a37bbc69f6c5d6c1d081f4f938f34cff412c4f.zip | |
Make verbose stuff use console_notify
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'MokManager.c')
| -rw-r--r-- | MokManager.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/MokManager.c b/MokManager.c index 5e9321a5..5d86e330 100644 --- a/MokManager.c +++ b/MokManager.c @@ -6,7 +6,6 @@ #include "shim.h" #include "PeImage.h" #include "PasswordCrypt.h" -#include "console_control.h" #include "guid.h" #include "console.h" @@ -1749,34 +1748,6 @@ static EFI_STATUS check_mok_request(EFI_HANDLE image_handle) return EFI_SUCCESS; } -static VOID setup_console (int text) -{ - EFI_STATUS status; - EFI_GUID console_control_guid = EFI_CONSOLE_CONTROL_PROTOCOL_GUID; - EFI_CONSOLE_CONTROL_PROTOCOL *concon; - static EFI_CONSOLE_CONTROL_SCREEN_MODE mode = - EfiConsoleControlScreenGraphics; - EFI_CONSOLE_CONTROL_SCREEN_MODE new_mode; - - status = LibLocateProtocol(&console_control_guid, (VOID **)&concon); - if (status != EFI_SUCCESS) - return; - - if (text) { - new_mode = EfiConsoleControlScreenText; - - status = uefi_call_wrapper(concon->GetMode, 4, concon, &mode, - 0, 0); - /* If that didn't work, assume it's graphics */ - if (status != EFI_SUCCESS) - mode = EfiConsoleControlScreenGraphics; - } else { - new_mode = mode; - } - - uefi_call_wrapper(concon->SetMode, 2, concon, new_mode); -} - static EFI_STATUS setup_rand (void) { EFI_TIME time; |
