From d230d02f990f02293736dca78b108f86c86d1bd0 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Mon, 26 Aug 2019 16:12:05 -0400 Subject: console: Fix a typo in the EFI warning list in gnu-efi Some versions of gnu-efi have a typo, in which "EFI_WARN_UNKNOWN_GLYPH" is accidentally "EFI_WARN_UNKOWN_GLYPH". Work around that, so that we can use the not-silly one in console.c's list of error and warning messages. This is a backport from devel for: commit 5f62b22ccd636d326b3229a2b196118701c6f3f7 Author: Peter Jones Date: Mon Aug 26 16:12:05 2019 -0400 Signed-off-by: Peter Jones --- include/console.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/console.h b/include/console.h index 63461c96..b2ab5fe4 100644 --- a/include/console.h +++ b/include/console.h @@ -9,6 +9,12 @@ #define PrintAt(fmt, ...) \ ({"Do not directly call PrintAt() use console_print_at() instead" = 1;}); +#if !defined(EFI_WARN_UNKNOWN_GLYPH) && defined(EFI_WARN_UNKOWN_GLYPH) +#define EFI_WARN_UNKNOWN_GLYPH EFI_WARN_UNKOWN_GLYPH +#elif !defined(EFI_WARN_UNKNOWN_GLYPH) +#define EFI_WARN_UNKNOWN_GLYPH EFIWARN(1) +#endif + EFI_STATUS console_get_keystroke(EFI_INPUT_KEY *key); UINTN -- cgit v1.2.3