mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
core/include/debug.h: minor debug fix
This commit is contained in:
parent
08ef57fbd0
commit
921fdd0975
@ -94,7 +94,7 @@ extern "C" {
|
||||
*
|
||||
* @note Another name for ::DEBUG_PRINT
|
||||
*/
|
||||
#define DEBUG(...) if (ENABLE_DEBUG) { DEBUG_PRINT(__VA_ARGS__); }
|
||||
#define DEBUG(...) do { if (ENABLE_DEBUG) { DEBUG_PRINT(__VA_ARGS__); } } while (0)
|
||||
|
||||
/**
|
||||
* @def DEBUG_PUTS
|
||||
@ -102,7 +102,7 @@ extern "C" {
|
||||
* @brief Print debug information to stdout using puts(), so no stack size
|
||||
* restrictions do apply.
|
||||
*/
|
||||
#define DEBUG_PUTS(str) if (ENABLE_DEBUG) { puts(str); }
|
||||
#define DEBUG_PUTS(str) do { if (ENABLE_DEBUG) { puts(str); } } while (0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user