From fc986307fb200fdf493b9dd083ad39ae3561b0c9 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Thu, 3 Oct 2013 11:01:36 -0400 Subject: Add ident-like blobs to shim.efi for version checking. I feel dirty. --- lib/console.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lib/console.c') diff --git a/lib/console.c b/lib/console.c index 72d64271..44b08f25 100644 --- a/lib/console.c +++ b/lib/console.c @@ -312,6 +312,20 @@ console_notify(CHAR16 *string) console_alertbox(str_arr); } +void +console_notify_ascii(CHAR8 *string) +{ + CHAR16 *str = AllocateZeroPool((strlena(string) + 1) * 2); + int i, j; + + if (!str) + return; + + for (i = 0, j = 1; string[i] != '\0'; i++, j+=2) + str[j] = string[i]; + console_notify(str); +} + #define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0])) /* Copy of gnu-efi-3.0 with the added secure boot strings */ -- cgit v1.2.3