L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
debug.h
1
/*
2
* Copyright (C) 2018, 2024 Kernkonzept GmbH.
3
* Author(s): Sarah Hoffmann <sarah.hoffmann@kernkonzept.com>
4
*
5
* License: see LICENSE.spdx (in this directory or the directories above)
6
*/
7
#pragma once
8
9
#include <l4/re/util/debug>
10
11
namespace
Block_device {
12
13
class
Err :
public
L4Re::Util::Err
14
{
15
public
:
16
explicit
17
Err(Level l = Normal) :
L4Re
::Util::Err(l,
""
) {}
18
};
19
20
class
Dbg :
public
L4Re::Util::Dbg
21
{
22
enum
Level
23
{
24
Blk_warn = 1,
25
Blk_info = 2,
26
Blk_trace = 4,
27
Blk_steptrace = 8
28
};
29
30
public
:
31
Dbg(
unsigned
long
l = Blk_info,
char
const
*subsys =
""
)
32
:
L4Re
::Util::Dbg(l,
"libblock"
, subsys) {}
33
34
static
Dbg warn(
char
const
*subsys =
""
)
35
{
return
Dbg(Blk_warn, subsys); }
36
37
static
Dbg info(
char
const
*subsys =
""
)
38
{
return
Dbg(Blk_info, subsys); }
39
40
static
Dbg trace(
char
const
*subsys =
""
)
41
{
return
Dbg(Blk_trace, subsys); }
42
43
static
Dbg steptrace(
char
const
*subsys =
""
)
44
{
return
Dbg(Blk_steptrace, subsys); }
45
};
46
47
}
// name space
48
L4Re
L4Re C++ Interfaces.
Definition
cmd_control:14
l4
libblock-device
debug.h
Generated on Fri May 23 2025 13:40:51 for L4Re Operating System Framework by
1.9.8