mirror of
https://gitlab.com/bztsrc/posix-uefi.git
synced 2024-12-28 06:55:08 +01:00
Added va_end calls
This commit is contained in:
parent
031e1a1120
commit
9ec5d3fb32
1 changed files with 16 additions and 4 deletions
20
uefi/stdio.c
20
uefi/stdio.c
|
@ -701,16 +701,22 @@ int vsprintf(char_t *dst, const char_t *fmt, __builtin_va_list args)
|
||||||
|
|
||||||
int sprintf(char_t *dst, const char_t* fmt, ...)
|
int sprintf(char_t *dst, const char_t* fmt, ...)
|
||||||
{
|
{
|
||||||
|
int ret;
|
||||||
__builtin_va_list args;
|
__builtin_va_list args;
|
||||||
__builtin_va_start(args, fmt);
|
__builtin_va_start(args, fmt);
|
||||||
return vsnprintf(dst, BUFSIZ, fmt, args);
|
ret = vsnprintf(dst, BUFSIZ, fmt, args);
|
||||||
|
__builtin_va_end(args);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int snprintf(char_t *dst, size_t maxlen, const char_t* fmt, ...)
|
int snprintf(char_t *dst, size_t maxlen, const char_t* fmt, ...)
|
||||||
{
|
{
|
||||||
|
int ret;
|
||||||
__builtin_va_list args;
|
__builtin_va_list args;
|
||||||
__builtin_va_start(args, fmt);
|
__builtin_va_start(args, fmt);
|
||||||
return vsnprintf(dst, maxlen, fmt, args);
|
ret = vsnprintf(dst, maxlen, fmt, args);
|
||||||
|
__builtin_va_end(args);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int vprintf(const char_t* fmt, __builtin_va_list args)
|
int vprintf(const char_t* fmt, __builtin_va_list args)
|
||||||
|
@ -730,9 +736,12 @@ int vprintf(const char_t* fmt, __builtin_va_list args)
|
||||||
|
|
||||||
int printf(const char_t* fmt, ...)
|
int printf(const char_t* fmt, ...)
|
||||||
{
|
{
|
||||||
|
int ret;
|
||||||
__builtin_va_list args;
|
__builtin_va_list args;
|
||||||
__builtin_va_start(args, fmt);
|
__builtin_va_start(args, fmt);
|
||||||
return vprintf(fmt, args);
|
ret = vprintf(fmt, args);
|
||||||
|
__builtin_va_end(args);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int vfprintf (FILE *__stream, const char_t *__format, __builtin_va_list args)
|
int vfprintf (FILE *__stream, const char_t *__format, __builtin_va_list args)
|
||||||
|
@ -772,9 +781,12 @@ int vfprintf (FILE *__stream, const char_t *__format, __builtin_va_list args)
|
||||||
|
|
||||||
int fprintf (FILE *__stream, const char_t *__format, ...)
|
int fprintf (FILE *__stream, const char_t *__format, ...)
|
||||||
{
|
{
|
||||||
|
int ret;
|
||||||
__builtin_va_list args;
|
__builtin_va_list args;
|
||||||
__builtin_va_start(args, __format);
|
__builtin_va_start(args, __format);
|
||||||
return vfprintf(__stream, __format, args);
|
ret = vfprintf(__stream, __format, args);
|
||||||
|
__builtin_va_end(args);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int getchar_ifany (void)
|
int getchar_ifany (void)
|
||||||
|
|
Loading…
Reference in a new issue