From 1fe31ee1b4ebf2f177d512d0301e11de0689a275 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Mon, 12 Mar 2018 16:03:38 +0100 Subject: console: Add console_print and console_print_at helpers This is a preparation commit for removing the setup_console(1) calls from MokManager and shim so that we don't force the EFI console to switch to text-mode. This commit replaces all direct calls to Print / PrintAt with calls to the new helpers (no functional changes) so that we can delay calling setup_console(1) till the first Print call in a follow-up patch. Signed-off-by: Hans de Goede --- lib/variables.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/variables.c') diff --git a/lib/variables.c b/lib/variables.c index 9d9ac603..9c2e7d0a 100644 --- a/lib/variables.c +++ b/lib/variables.c @@ -141,7 +141,8 @@ SetSecureVariable(CHAR16 *var, UINT8 *Data, UINTN len, EFI_GUID owner, efi_status = variable_create_esl(Data, len, &X509_GUID, NULL, (void **)&Cert, &ds); if (EFI_ERROR(efi_status)) { - Print(L"Failed to create %s certificate %d\n", var, efi_status); + console_print(L"Failed to create %s certificate %d\n", + var, efi_status); return efi_status; } @@ -153,7 +154,8 @@ SetSecureVariable(CHAR16 *var, UINT8 *Data, UINTN len, EFI_GUID owner, } efi_status = CreateTimeBasedPayload(&DataSize, (UINT8 **)&Cert); if (EFI_ERROR(efi_status)) { - Print(L"Failed to create time based payload %d\n", efi_status); + console_print(L"Failed to create time based payload %d\n", + efi_status); return efi_status; } -- cgit v1.2.3