summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/console.c14
1 files changed, 14 insertions, 0 deletions
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 */