summaryrefslogtreecommitdiff
path: root/errlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'errlog.c')
-rw-r--r--errlog.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/errlog.c b/errlog.c
index ac657151..cc6a89f5 100644
--- a/errlog.c
+++ b/errlog.c
@@ -11,25 +11,25 @@ static UINTN nerrs = 0;
EFI_STATUS EFIAPI
vdprint_(const CHAR16 *fmt, const char *file, int line, const char *func,
- va_list args)
+ ms_va_list args)
{
- va_list args2;
+ ms_va_list args2;
EFI_STATUS efi_status = EFI_SUCCESS;
if (verbose) {
- va_copy(args2, args);
+ ms_va_copy(args2, args);
console_print(L"%a:%d:%a() ", file, line, func);
efi_status = VPrint(fmt, args2);
- va_end(args2);
+ ms_va_end(args2);
}
return efi_status;
}
EFI_STATUS EFIAPI
VLogError(const char *file, int line, const char *func, const CHAR16 *fmt,
- va_list args)
+ ms_va_list args)
{
- va_list args2;
+ ms_va_list args2;
CHAR16 **newerrs;
newerrs = ReallocatePool(errs, (nerrs + 1) * sizeof(*errs),
@@ -40,11 +40,11 @@ VLogError(const char *file, int line, const char *func, const CHAR16 *fmt,
newerrs[nerrs] = PoolPrint(L"%a:%d %a() ", file, line, func);
if (!newerrs[nerrs])
return EFI_OUT_OF_RESOURCES;
- va_copy(args2, args);
+ ms_va_copy(args2, args);
newerrs[nerrs+1] = VPoolPrint(fmt, args2);
if (!newerrs[nerrs+1])
return EFI_OUT_OF_RESOURCES;
- va_end(args2);
+ ms_va_end(args2);
nerrs += 2;
newerrs[nerrs] = NULL;
@@ -56,12 +56,12 @@ VLogError(const char *file, int line, const char *func, const CHAR16 *fmt,
EFI_STATUS EFIAPI
LogError_(const char *file, int line, const char *func, const CHAR16 *fmt, ...)
{
- va_list args;
+ ms_va_list args;
EFI_STATUS efi_status;
- va_start(args, fmt);
+ ms_va_start(args, fmt);
efi_status = VLogError(file, line, func, fmt, args);
- va_end(args);
+ ms_va_end(args);
return efi_status;
}