[golan] Add Connect-IB, ConnectX-4 and ConnectX-4 Lx (Infiniband) support
[ipxe.git] / src / drivers / infiniband / mlx_utils_flexboot / include / mlx_logging_priv.h
1 /*
2 * DebugPriv.h
3 *
4 * Created on: Jan 19, 2015
5 * Author: maord
6 */
7
8 #ifndef STUB_MLXUTILS_INCLUDE_PRIVATE_FLEXBOOT_DEBUG_H_
9 #define STUB_MLXUTILS_INCLUDE_PRIVATE_FLEXBOOT_DEBUG_H_
10
11 #include <stdio.h>
12 #include <compiler.h>
13
14 #define MLX_DEBUG_FATAL_ERROR_PRIVATE(...) do { \
15 DBG("%s: ",__func__); \
16 DBG(__VA_ARGS__); \
17 } while ( 0 )
18
19 #define MLX_DEBUG_ERROR_PRIVATE(id, ...) do { \
20 DBGC(id, "%s: ",__func__); \
21 DBGC(id, __VA_ARGS__); \
22 } while ( 0 )
23
24 #define MLX_DEBUG_WARN_PRIVATE(id, ...) do { \
25 DBGC(id, "%s: ",__func__); \
26 DBGC(id, __VA_ARGS__); \
27 } while ( 0 )
28
29 #define MLX_DEBUG_INFO1_PRIVATE(id, ...) do { \
30 DBGC(id, "%s: ",__func__); \
31 DBGC(id, __VA_ARGS__); \
32 } while ( 0 )
33
34 #define MLX_DEBUG_INFO2_PRIVATE(id, ...) do { \
35 DBGC2(id, "%s: ",__func__); \
36 DBGC2(id, __VA_ARGS__); \
37 } while ( 0 )
38
39 #define MLX_DBG_ERROR_PRIVATE(...) do { \
40 DBG("%s: ",__func__); \
41 DBG(__VA_ARGS__); \
42 } while ( 0 )
43
44 #define MLX_DBG_WARN_PRIVATE(...) do { \
45 DBG("%s: ",__func__); \
46 DBG(__VA_ARGS__); \
47 } while ( 0 )
48
49 #define MLX_DBG_INFO1_PRIVATE(...) do { \
50 DBG("%s: ",__func__); \
51 DBG(__VA_ARGS__); \
52 } while ( 0 )
53
54 #define MLX_DBG_INFO2_PRIVATE(...) do { \
55 DBG2("%s: ",__func__); \
56 DBG2(__VA_ARGS__); \
57 } while ( 0 )
58
59
60
61 #endif /* STUB_MLXUTILS_INCLUDE_PRIVATE_FLEXBOOT_DEBUG_H_ */