core/debug: Fix code style errors

This commit is contained in:
Leandro Lanzieri 2020-02-18 11:45:56 +01:00
parent 981b4eb8d0
commit ea8c85ae8b

View File

@ -46,7 +46,8 @@ extern "C" {
#include "cpu_conf.h" #include "cpu_conf.h"
#define DEBUG_PRINT(...) \ #define DEBUG_PRINT(...) \
do { \ do { \
if ((sched_active_thread == NULL) || (sched_active_thread->stack_size >= THREAD_EXTRA_STACKSIZE_PRINTF)) { \ if ((sched_active_thread == NULL) || \
(sched_active_thread->stack_size >= THREAD_EXTRA_STACKSIZE_PRINTF)) { \
printf(__VA_ARGS__); \ printf(__VA_ARGS__); \
} \ } \
else { \ else { \
@ -92,7 +93,7 @@ extern "C" {
* *
* @note Another name for ::DEBUG_PRINT * @note Another name for ::DEBUG_PRINT
*/ */
#define DEBUG(...) if (ENABLE_DEBUG) DEBUG_PRINT(__VA_ARGS__) #define DEBUG(...) if (ENABLE_DEBUG) { DEBUG_PRINT(__VA_ARGS__); }
/** /**
* @def DEBUG_PUTS * @def DEBUG_PUTS
@ -100,7 +101,7 @@ extern "C" {
* @brief Print debug information to stdout using puts(), so no stack size * @brief Print debug information to stdout using puts(), so no stack size
* restrictions do apply. * restrictions do apply.
*/ */
#define DEBUG_PUTS(str) if (ENABLE_DEBUG) puts(str) #define DEBUG_PUTS(str) if (ENABLE_DEBUG) { puts(str); }
/** @} */ /** @} */
/** /**