-/******************************************************************************\r
-*\r
-* Copyright (c) 2019 Intel.\r
-*\r
-* Licensed under the Apache License, Version 2.0 (the "License");\r
-* you may not use this file except in compliance with the License.\r
-* You may obtain a copy of the License at\r
-*\r
-* http://www.apache.org/licenses/LICENSE-2.0\r
-*\r
-* Unless required by applicable law or agreed to in writing, software\r
-* distributed under the License is distributed on an "AS IS" BASIS,\r
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-* See the License for the specific language governing permissions and\r
-* limitations under the License.\r
-*\r
-*******************************************************************************/\r
-\r
-/**\r
- * @brief Modules provide debug prints and utility functions\r
- * @file xran_printf.h\r
- * @ingroup group_source_xran\r
- * @author Intel Corporation\r
- **/\r
-\r
-#ifndef XRAN_PRINTF_H\r
-#define XRAN_PRINTF_H\r
-\r
-#ifdef __cplusplus\r
-extern "C" {\r
-#endif\r
-#include <stdio.h>\r
-#include <stdlib.h>\r
-\r
-#define PRINTF_LOG_OK\r
-#define PRINTF_INF_OK\r
-#define PRINTF_ERR_OK\r
-//#define PRINTF_DBG_OK\r
-\r
-#ifndef WIN32\r
-#ifdef PRINTF_LOG_OK\r
-#define print_log(fmt, args...) printf("%s:" fmt "\n", __FUNCTION__, ## args)\r
-#else /* PRINTF_LOG_OK */\r
-#define print_log(fmt, args...)\r
-#endif /* PRINTF_LOG_OK */\r
-#else\r
-#define print_log(fmt, ...) printf("%s:" fmt "\n", __FUNCTION__, __VA_ARGS__)\r
-#endif\r
-\r
-#ifndef WIN32\r
-#ifdef PRINTF_DBG_OK\r
-#define print_dbg(fmt, args...) printf("%s:[dbg] " fmt "\n", __FUNCTION__, ## args)\r
-#else /* PRINTF_LOG_OK */\r
-#define print_dbg(fmt, args...)\r
-#endif /* PRINTF_LOG_OK */\r
-#else\r
-#define print_dbg(fmt, ...) printf("%s:[dbg] " fmt "\n", __FUNCTION__, __VA_ARGS__)\r
-#endif\r
-\r
-#ifndef WIN32\r
-#ifdef PRINTF_ERR_OK\r
-#define print_err(fmt, args...) printf("%s:[err] " fmt "\n", __FUNCTION__, ## args)\r
-#else /* PRINTF_LOG_OK */\r
-#define print_err(fmt, args...)\r
-#endif /* PRINTF_LOG_OK */\r
-#else\r
-#define print_err(fmt, ...) printf("%s:[err] " fmt "\n", __FUNCTION__, __VA_ARGS__)\r
-#endif\r
-\r
-#ifndef WIN32\r
-#ifdef PRINTF_INF_OK\r
-#define print_inf printf\r
-#else /* PRINTF_LOG_OK */\r
-#define print_inf\r
-#endif /* PRINTF_LOG_OK */\r
-#else\r
-#define print_inf printf\r
-#endif\r
-\r
-#ifdef __cplusplus\r
-}\r
-#endif\r
-\r
-#ifndef _IASSERT_\r
-#define _IASSERT_\r
-\r
-#ifdef _DEBUG\r
-#define iAssert(p) if(!(p)){fprintf(stderr,\\r
- "Assertion failed: %s, file %s, line %d, val %d\n",\\r
- #p, __FILE__, __LINE__, p);exit(-1);}\r
-#else /* _DEBUG */\r
-#define iAssert(p)\r
-#endif /* _DEBUG */\r
-\r
-#ifndef PHY_APP\r
-#ifndef _assert\r
-#define _assert(x)\r
-#endif\r
-#endif\r
-\r
-#endif /* _IASSERT_*/\r
-\r
-#ifdef CHECK_PARAMS\r
-#define CHECK_NOT_NULL(param, returnValue) \\r
-if (param == NULL) \\r
-{ \\r
- print_err("%s is NULL!\n", #param); \\r
- return returnValue; \\r
-}\r
-#else\r
-#define CHECK_NOT_NULL(param, returnValue)\r
-#endif\r
-\r
-#ifdef __cplusplus\r
-}\r
-#endif\r
-\r
-#endif // PHY_PRINTF_H\r
+/******************************************************************************
+*
+* Copyright (c) 2019 Intel.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*******************************************************************************/
+
+/**
+ * @brief Modules provide debug prints and utility functions
+ * @file xran_printf.h
+ * @ingroup group_source_xran
+ * @author Intel Corporation
+ **/
+
+#ifndef XRAN_PRINTF_H
+#define XRAN_PRINTF_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+#include <stdio.h>
+#include <stdlib.h>
+
+#define PRINTF_LOG_OK
+#define PRINTF_INF_OK
+#define PRINTF_ERR_OK
+//#define PRINTF_DBG_OK
+
+#ifndef WIN32
+#ifdef PRINTF_LOG_OK
+#define print_log(fmt, args...) printf("%s:" fmt "\n", __FUNCTION__, ## args)
+#else /* PRINTF_LOG_OK */
+#define print_log(fmt, args...)
+#endif /* PRINTF_LOG_OK */
+#else
+#define print_log(fmt, ...) printf("%s:" fmt "\n", __FUNCTION__, __VA_ARGS__)
+#endif
+
+#ifndef WIN32
+#ifdef PRINTF_DBG_OK
+#define print_dbg(fmt, args...) printf("%s:[dbg] " fmt "\n", __FUNCTION__, ## args)
+#else /* PRINTF_LOG_OK */
+#define print_dbg(fmt, args...)
+#endif /* PRINTF_LOG_OK */
+#else
+#define print_dbg(fmt, ...) printf("%s:[dbg] " fmt "\n", __FUNCTION__, __VA_ARGS__)
+#endif
+
+#ifndef WIN32
+#ifdef PRINTF_ERR_OK
+#define print_err(fmt, args...) printf("%s:[err] " fmt "\n", __FUNCTION__, ## args)
+#else /* PRINTF_LOG_OK */
+#define print_err(fmt, args...)
+#endif /* PRINTF_LOG_OK */
+#else
+#define print_err(fmt, ...) printf("%s:[err] " fmt "\n", __FUNCTION__, __VA_ARGS__)
+#endif
+
+#ifndef WIN32
+#ifdef PRINTF_INF_OK
+#define print_inf printf
+#else /* PRINTF_LOG_OK */
+#define print_inf
+#endif /* PRINTF_LOG_OK */
+#else
+#define print_inf printf
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#ifndef _IASSERT_
+#define _IASSERT_
+
+#ifdef _DEBUG
+#define iAssert(p) if(!(p)){fprintf(stderr,\
+ "Assertion failed: %s, file %s, line %d, val %d\n",\
+ #p, __FILE__, __LINE__, p);exit(-1);}
+#else /* _DEBUG */
+#define iAssert(p)
+#endif /* _DEBUG */
+
+#ifndef PHY_APP
+#ifndef _assert
+#define _assert(x)
+#endif
+#endif
+
+#endif /* _IASSERT_*/
+
+#ifdef CHECK_PARAMS
+#define CHECK_NOT_NULL(param, returnValue) \
+if (param == NULL) \
+{ \
+ print_err("%s is NULL!\n", #param); \
+ return returnValue; \
+}
+#else
+#define CHECK_NOT_NULL(param, returnValue)
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // PHY_PRINTF_H