iPXE
mlx_logging.h
Go to the documentation of this file.
1 #ifndef PUBLIC_INCLUDE_MLX_LOGGER_H_
2 #define PUBLIC_INCLUDE_MLX_LOGGER_H_
3 
4 /*
5  * Copyright (C) 2015 Mellanox Technologies Ltd.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 2 of the
10  * License, or any later version.
11  *
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20  * 02110-1301, USA.
21  */
22 
23 FILE_LICENCE ( GPL2_OR_LATER );
24 
25 #include "../../../mlx_utils_flexboot/include/mlx_logging_priv.h"
26 
27 #define MLX_PRINT(...) MLX_PRINT_PRIVATE(__VA_ARGS__)
28 #define MLX_DEBUG_FATAL_ERROR(...) MLX_DEBUG_FATAL_ERROR_PRIVATE(__VA_ARGS__)
29 #define MLX_DEBUG_ERROR(...) MLX_DEBUG_ERROR_PRIVATE(__VA_ARGS__)
30 #define MLX_DEBUG_WARN(...) MLX_DEBUG_WARN_PRIVATE(__VA_ARGS__)
31 #define MLX_DEBUG_INFO1(...) MLX_DEBUG_INFO1_PRIVATE(__VA_ARGS__)
32 #define MLX_DEBUG_INFO2(...) MLX_DEBUG_INFO2_PRIVATE(__VA_ARGS__)
33 #define MLX_DBG_ERROR(...) MLX_DBG_ERROR_PRIVATE(__VA_ARGS__)
34 #define MLX_DBG_WARN(...) MLX_DBG_WARN_PRIVATE(__VA_ARGS__)
35 #define MLX_DBG_INFO1(...) MLX_DBG_INFO1_PRIVATE(__VA_ARGS__)
36 #define MLX_DBG_INFO2(...) MLX_DBG_INFO2_PRIVATE(__VA_ARGS__)
37 
38 #define MLX_TRACE_1_START() MLX_DBG_INFO1_PRIVATE("Start\n")
39 #define MLX_TRACE_1_END() MLX_DBG_INFO1_PRIVATE("End\n")
40 #define MLX_TRACE_1_END_STATUS(status) MLX_DBG_INFO1_PRIVATE("End (%s=%d)\n", #status,status)
41 #define MLX_TRACE_2_START() MLX_DBG_INFO2_PRIVATE("Start\n")
42 #define MLX_TRACE_2_END() MLX_DBG_INFO2_PRIVATE("End\n")
43 #define MLX_TRACE_2_END_STATUS(status) MLX_DBG_INFO2_PRIVATE("End (%s=%d)\n", #status,status)
44 
45 
46 
47 #endif /* PUBLIC_INCLUDE_MLX_LOGGER_H_ */
FILE_LICENCE(GPL2_OR_LATER)