1 /* 2 * (c) 2008-2009 Alexander Warg <warg@os.inf.tu-dresden.de> 3 * economic rights: Technische Universität Dresden (Germany) 4 * 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. 8 */ 9 #pragma once 10 11 #include <l4/re/util/debug> 12 13 class Err : public L4Re::Util::Err 14 { 15 public: 16 explicit 17 Err(Level l = Normal) : L4Re::Util::Err(l, "L4Re") {} 18 }; 19 20 class Dbg : public L4Re::Util::Dbg 21 { 22 public: 23 enum Level 24 { 25 Info = 1, 26 Warn = 2, 27 Boot = 4, 28 29 Server = 0x10, 30 Exceptions = 0x20, 31 POSIX_be = 0x40, 32 Loader = 0x80, 33 }; 34 35 explicit 36 Dbg(unsigned long mask, char const *subs = 0) 37 : L4Re::Util::Dbg(mask, "L4Re", subs) 38 {} 39 }; 40 41