-/******************************************************************************\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\r
- * @file\r
- * @ingroup\r
- * @author Intel Corporation\r
- **/\r
-\r
-#ifndef _SAMPLEAPP__DEBUG_H_\r
-#define _SAMPLEAPP__DEBUG_H_\r
-\r
-#include <stdio.h>\r
-\r
-#include "config.h"\r
-\r
-#define MAX_FILE_NAME_LEN (512)\r
-#define MAX_PATH_NAME_LEN (1024)\r
-\r
-#ifdef _DEBUG\r
- #define log_dbg(fmt, ...) \\r
- fprintf(stderr, \\r
- "DEBUG: %s(%d): " fmt "\n", \\r
- __FILE__, \\r
- __LINE__, ##__VA_ARGS__)\r
-#else\r
- #define log_dbg(fmt, ...)\r
-#endif\r
-\r
-#if defined(_DEBUG) || defined(_VERBOSE)\r
- #define log_wrn(fmt, ...) \\r
- fprintf( \\r
- stderr, \\r
- "WARNING: %s(%d): " fmt "\n", \\r
- __FILE__, \\r
- __LINE__, ##__VA_ARGS__)\r
-#else\r
- #define log_dbg(fmt, ...)\r
- #define log_wrn(fmt, ...)\r
-#endif\r
-\r
-\r
-#define log_err(fmt, ...) \\r
- fprintf(stderr, \\r
- "ERROR: %s(%d): " fmt "\n", \\r
- __FILE__, \\r
- __LINE__, ##__VA_ARGS__)\r
-\r
-\r
-inline void ShowData(void* ptr, unsigned int size)\r
-{\r
- uint8_t *d = (uint8_t *)ptr;\r
- unsigned int i;\r
-\r
- for(i = 0; i < size; i++)\r
- {\r
- if ( !(i & 0xf) )\r
- printf("\n");\r
- printf("%02x ", d[i]);\r
- }\r
- printf("\n");\r
-}\r
-\r
-\r
-#endif /* _SAMPLEAPP__DEBUG_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
+ * @file
+ * @ingroup
+ * @author Intel Corporation
+ **/
+
+#ifndef _SAMPLEAPP__DEBUG_H_
+#define _SAMPLEAPP__DEBUG_H_
+
+#include <stdio.h>
+
+#include "config.h"
+
+#define MAX_FILE_NAME_LEN (512)
+#define MAX_PATH_NAME_LEN (1024)
+
+#ifdef _DEBUG
+ #define log_dbg(fmt, ...) \
+ fprintf(stderr, \
+ "DEBUG: %s(%d): " fmt "\n", \
+ __FILE__, \
+ __LINE__, ##__VA_ARGS__)
+#else
+ #define log_dbg(fmt, ...)
+#endif
+
+#if defined(_DEBUG) || defined(_VERBOSE)
+ #define log_wrn(fmt, ...) \
+ fprintf( \
+ stderr, \
+ "WARNING: %s(%d): " fmt "\n", \
+ __FILE__, \
+ __LINE__, ##__VA_ARGS__)
+#else
+ #define log_dbg(fmt, ...)
+ #define log_wrn(fmt, ...)
+#endif
+
+
+#define log_err(fmt, ...) \
+ fprintf(stderr, \
+ "ERROR: %s(%d): " fmt "\n", \
+ __FILE__, \
+ __LINE__, ##__VA_ARGS__)
+
+
+inline void ShowData(void* ptr, unsigned int size)
+{
+ uint8_t *d = (uint8_t *)ptr;
+ unsigned int i;
+
+ for(i = 0; i < size; i++)
+ {
+ if ( !(i & 0xf) )
+ printf("\n");
+ printf("%02x ", d[i]);
+ }
+ printf("\n");
+}
+
+
+#endif /* _SAMPLEAPP__DEBUG_H_ */