1 /* 2 * (c) 2008-2009 Alexander Warg <warg@os.inf.tu-dresden.de>, 3 * Björn Döbel <doebel@os.inf.tu-dresden.de> 4 * economic rights: Technische Universität Dresden (Germany) 5 * 6 * This file is part of TUD:OS and distributed under the terms of the 7 * GNU General Public License 2. 8 * Please see the COPYING-GPL-2 file for details. 9 */ 10 #pragma once 11 12 #include <l4/re/util/debug> 13 14 class Err : public L4Re::Util::Err 15 { 16 public: 17 explicit 18 Err(Level l = Normal) : L4Re::Util::Err(l, "MOE") {} 19 }; 20 21 class Dbg : public L4Re::Util::Dbg 22 { 23 public: 24 enum Level 25 { 26 Info = 1, 27 Warn = 2, 28 Boot = 4, 29 30 Server = 0x10, 31 Exceptions = 0x20, 32 Loader = 0x80, 33 Parser = 0x100, 34 Boot_fs = 0x200, 35 Name_space = 0x400, 36 }; 37 38 struct Dbg_bits { char const *n; unsigned long bits; }; 39 40 static Dbg_bits dbg_bits[]; 41 42 explicit 43 Dbg(unsigned long mask, char const *subs = 0) 44 : L4Re::Util::Dbg(mask, "MOE", subs) 45 {} 46 }; 47 48