genode/ports-foc/src/lib/l4lx/l4_log.cc

49 lines
772 B
C++
Raw Normal View History

2011-12-22 16:19:25 +01:00
/*
* \brief L4Re functions needed by L4Linux.
* \author Stefan Kalkowski
* \date 2011-04-17
*/
/*
2013-01-10 21:44:47 +01:00
* Copyright (C) 2011-2013 Genode Labs GmbH
2011-12-22 16:19:25 +01:00
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
/* Genode includes */
#include <base/printf.h>
#include <linux.h>
2011-12-22 16:19:25 +01:00
namespace Fiasco {
#include <l4/log/log.h>
#include <l4/sys/kdebug.h>
}
using namespace Fiasco;
extern "C" {
void LOG_printf(const char *format, ...)
{
Linux::Irq_guard guard;
2011-12-22 16:19:25 +01:00
va_list list;
va_start(list, format);
Genode::vprintf(format, list);
}
void LOG_vprintf(const char *format, va_list list)
{
Linux::Irq_guard guard;
Genode::vprintf(format, list);
2011-12-22 16:19:25 +01:00
}
void LOG_flush(void) {}
}