Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
debug_p11.h
Go to the documentation of this file.
1
/*
2
* Copyright 2015-2018 Yubico AB
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef DEBUG_P11_H
18
#define DEBUG_P11_H
19
20
#include <stdio.h>
21
#include <stdlib.h>
22
23
#include "
../common/debug.h
"
24
25
extern
int
_YHP11_DBG
;
26
extern
int
_YHP11_DINOUT
;
27
extern
FILE *
_YHP11_OUTPUT
;
28
29
void
yh_dbg_init
(
int
dbg,
int
dinout,
int
libdbg,
const
char
*debug_file);
30
31
#define DBG_INFO(...) \
32
do { \
33
DLN(_YHP11_DBG, _YHP11_OUTPUT, ANSI_BLUE, "P11", "INF", __VA_ARGS__); \
34
} while (0)
35
36
#define DBG_WARN(...) \
37
do { \
38
DLN(_YHP11_DBG, _YHP11_OUTPUT, ANSI_YELLOW, "P11", "WRN", __VA_ARGS__); \
39
} while (0)
40
41
#define DBG_ERR(...) \
42
do { \
43
DLN(_YHP11_DBG, _YHP11_OUTPUT, ANSI_RED, "P11", "ERR", __VA_ARGS__); \
44
} while (0)
45
46
#define DIN \
47
do { \
48
DLN(_YHP11_DINOUT, _YHP11_OUTPUT, ANSI_BLUE, "P11", "INF", ("In")); \
49
} while (0)
50
51
#define DOUT \
52
do { \
53
DLN(_YHP11_DINOUT, _YHP11_OUTPUT, ANSI_BLUE, "P11", "INF", ("Out")); \
54
} while (0)
55
56
#endif
debug.h
_YHP11_OUTPUT
FILE * _YHP11_OUTPUT
Definition
debug_p11.c:25
_YHP11_DBG
int _YHP11_DBG
Definition
debug_p11.c:23
yh_dbg_init
void yh_dbg_init(int dbg, int dinout, int libdbg, const char *debug_file)
Definition
debug_p11.c:27
_YHP11_DINOUT
int _YHP11_DINOUT
Definition
debug_p11.c:24
libraries
yubihsm
pkcs11
debug_p11.h
Generated by
1.12.0