2 * \file l4util/lib/src/kprintf.c
3 * \brief simple(!) -- non threaded -- printf using kernel debugger output
6 * \author Adam Lackorzynski <adam@os.inf.tu-dresden.de>
10 * (c) 2007-2009 Author(s)
11 * economic rights: Technische Universität Dresden (Germany)
12 * This file is part of TUD:OS and distributed under the terms of the
13 * GNU Lesser General Public License 2.1.
14 * Please see the COPYING-LGPL-2.1 file for details.
20 #include <l4/sys/kdebug.h>
21 #include <l4/util/kprintf.h>
23 /* This is in the BSS on purpose to not put more load on the stack,
24 * and we know that this is suited for threading this way
26 static char buffer[500];
28 int l4_kprintf(const char *fmt, ...)
34 err = vsnprintf(buffer, sizeof(buffer), fmt, list);
35 buffer[sizeof(buffer) - 1] = 0;