2 * (c) 2011 Alexander Warg <warg@os.inf.tu-dresden.de>
3 * economic rights: Technische Universität Dresden (Germany)
5 * This file is part of TUD:OS and distributed under the terms of the
6 * GNU General Public License 2.
7 * Please see the COPYING-GPL-2 file for details.
15 static unsigned _debug_level = 2;
17 void set_debug_level(unsigned level)
22 bool dlevel(unsigned level)
24 return _debug_level >= level;
27 void d_printf(unsigned level, char const *fmt, ...)
29 if (_debug_level < level)