Commit 322759f9 authored by Mark Brown's avatar Mark Brown Committed by Shuah Khan

tools/nolibc/stdio: Implement vprintf()

vprintf() is equivalent to vfprintf() to stdout so implement it as a simple
wrapper for the existing vfprintf(), allowing us to build kselftest.h.
Suggested-by: default avatarWilly Tarreau <w@1wt.eu>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Acked-by: default avatarWilly Tarreau <w@1wt.eu>
Acked-by: default avatarPaul E. McKenney <paulmck@kernel.org>
Acked-by: default avatarShuah Khan <skhan@linuxfoundation.org>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 5874a6a1
......@@ -273,6 +273,12 @@ int vfprintf(FILE *stream, const char *fmt, va_list args)
return written;
}
static __attribute__((unused))
int vprintf(const char *fmt, va_list args)
{
return vfprintf(stdout, fmt, args);
}
static __attribute__((unused, format(printf, 2, 3)))
int fprintf(FILE *stream, const char *fmt, ...)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment