iPXE
mlx_logging.h
Go to the documentation of this file.
00001 #ifndef PUBLIC_INCLUDE_MLX_LOGGER_H_
00002 #define PUBLIC_INCLUDE_MLX_LOGGER_H_
00003 
00004 /*
00005  * Copyright (C) 2015 Mellanox Technologies Ltd.
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License as
00009  * published by the Free Software Foundation; either version 2 of the
00010  * License, or any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00020  * 02110-1301, USA.
00021  */
00022 
00023 FILE_LICENCE ( GPL2_OR_LATER );
00024 
00025 #include "../../../mlx_utils_flexboot/include/mlx_logging_priv.h"
00026 
00027 #define MLX_PRINT(...)                          MLX_PRINT_PRIVATE(__VA_ARGS__)
00028 #define MLX_DEBUG_FATAL_ERROR(...)      MLX_DEBUG_FATAL_ERROR_PRIVATE(__VA_ARGS__)
00029 #define MLX_DEBUG_ERROR(...)            MLX_DEBUG_ERROR_PRIVATE(__VA_ARGS__)
00030 #define MLX_DEBUG_WARN(...)                     MLX_DEBUG_WARN_PRIVATE(__VA_ARGS__)
00031 #define MLX_DEBUG_INFO1(...)            MLX_DEBUG_INFO1_PRIVATE(__VA_ARGS__)
00032 #define MLX_DEBUG_INFO2(...)            MLX_DEBUG_INFO2_PRIVATE(__VA_ARGS__)
00033 #define MLX_DBG_ERROR(...)                      MLX_DBG_ERROR_PRIVATE(__VA_ARGS__)
00034 #define MLX_DBG_WARN(...)                       MLX_DBG_WARN_PRIVATE(__VA_ARGS__)
00035 #define MLX_DBG_INFO1(...)                      MLX_DBG_INFO1_PRIVATE(__VA_ARGS__)
00036 #define MLX_DBG_INFO2(...)                      MLX_DBG_INFO2_PRIVATE(__VA_ARGS__)
00037 
00038 #define MLX_TRACE_1_START()                             MLX_DBG_INFO1_PRIVATE("Start\n")
00039 #define MLX_TRACE_1_END()                               MLX_DBG_INFO1_PRIVATE("End\n")
00040 #define MLX_TRACE_1_END_STATUS(status)  MLX_DBG_INFO1_PRIVATE("End (%s=%d)\n", #status,status)
00041 #define MLX_TRACE_2_START()                             MLX_DBG_INFO2_PRIVATE("Start\n")
00042 #define MLX_TRACE_2_END()                               MLX_DBG_INFO2_PRIVATE("End\n")
00043 #define MLX_TRACE_2_END_STATUS(status)  MLX_DBG_INFO2_PRIVATE("End (%s=%d)\n", #status,status)
00044 
00045 
00046 
00047 #endif /* PUBLIC_INCLUDE_MLX_LOGGER_H_ */