1
2
3
4
5
6
7 #ifndef ZCRYPT_DEBUG_H
8 #define ZCRYPT_DEBUG_H
9
10 #include <asm/debug.h>
11
12 #define DBF_ERR 3
13 #define DBF_WARN 4
14 #define DBF_INFO 5
15 #define DBF_DEBUG 6
16
17 #define RC2ERR(rc) ((rc) ? DBF_ERR : DBF_INFO)
18 #define RC2WARN(rc) ((rc) ? DBF_WARN : DBF_INFO)
19
20 #define DBF_MAX_SPRINTF_ARGS 5
21
22 #define ZCRYPT_DBF(...) \
23 debug_sprintf_event(zcrypt_dbf_info, ##__VA_ARGS__)
24
25 extern debug_info_t *zcrypt_dbf_info;
26
27 int zcrypt_debug_init(void);
28 void zcrypt_debug_exit(void);
29
30 #endif