mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-23 09:15:36 +00:00
Imported Genode release 11.11
This commit is contained in:
committed by
Christian Helmuth
parent
6bcc9aef0e
commit
da4e1feaa5
35
base-host/src/lib/printf_stdio/printf_stdio.cc
Normal file
35
base-host/src/lib/printf_stdio/printf_stdio.cc
Normal file
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* \brief Genode::printf back-end for stdio
|
||||
* \author Norman Feske
|
||||
* \date 2009-10-06
|
||||
*
|
||||
* This library can be used by unit test executed on the host platform to
|
||||
* direct output from the Genode framework to stdout.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2009-2011 Genode Labs GmbH
|
||||
*
|
||||
* This file is part of the Genode OS framework, which is distributed
|
||||
* under the terms of the GNU General Public License version 2.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <base/printf.h>
|
||||
|
||||
|
||||
void Genode::printf(const char *format, ...)
|
||||
{
|
||||
va_list list;
|
||||
va_start(list, format);
|
||||
|
||||
::vprintf(format, list);
|
||||
|
||||
va_end(list);
|
||||
}
|
||||
|
||||
|
||||
void Genode::vprintf(const char *format, va_list list)
|
||||
{
|
||||
::vprintf(format, list);
|
||||
}
|
Reference in New Issue
Block a user