summaryrefslogtreecommitdiff
path: root/lib/console.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2021-03-11 16:48:44 -0500
committerJavier Martinez Canillas <javier@dowhile0.org>2021-03-12 10:15:01 +0100
commit4457d79ce0ea638e7732f5529bf13849e290940d (patch)
tree5b931ef8fb3f2a641bc2732eb7821022cc897386 /lib/console.c
parent3c00db33e53d0cab3b701c1569a79c64878f202d (diff)
downloadefi-boot-shim-4457d79ce0ea638e7732f5529bf13849e290940d.tar.gz
efi-boot-shim-4457d79ce0ea638e7732f5529bf13849e290940d.zip
More va_* work
Be much more explicit about exactly which va_* stuff comes from which ABI in both shim and gnu-efi. This fixes the problem where we see: | (null):0:(null)() v->name:"(null)" v->rtname:"(null)" | (null):0:(null)() v->data_size:0 v->data:0x0 and similar messages where everything is NULL. Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'lib/console.c')
-rw-r--r--lib/console.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/console.c b/lib/console.c
index 2da20b31..c310d213 100644
--- a/lib/console.c
+++ b/lib/console.c
@@ -86,15 +86,15 @@ VOID console_fini(VOID)
UINTN EFIAPI
console_print(const CHAR16 *fmt, ...)
{
- va_list args;
+ ms_va_list args;
UINTN ret;
if (!console_text_mode)
setup_console(1);
- va_start(args, fmt);
+ ms_va_start(args, fmt);
ret = VPrint(fmt, args);
- va_end(args);
+ ms_va_end(args);
return ret;
}
@@ -103,7 +103,7 @@ UINTN EFIAPI
console_print_at(UINTN col, UINTN row, const CHAR16 *fmt, ...)
{
SIMPLE_TEXT_OUTPUT_INTERFACE *co = ST->ConOut;
- va_list args;
+ ms_va_list args;
UINTN ret;
if (!console_text_mode)
@@ -111,9 +111,9 @@ console_print_at(UINTN col, UINTN row, const CHAR16 *fmt, ...)
co->SetCursorPosition(co, col, row);
- va_start(args, fmt);
+ ms_va_start(args, fmt);
ret = VPrint(fmt, args);
- va_end(args);
+ ms_va_end(args);
return ret;
}