From b39fbe23e389e581b9c5e76fd082e0c33ce1b317 Mon Sep 17 00:00:00 2001 From: Karl Fessel Date: Tue, 12 Dec 2023 09:16:23 +0100 Subject: [PATCH] core/debug: printf what asked to print --- core/lib/include/debug.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/core/lib/include/debug.h b/core/lib/include/debug.h index 7c67b261551d..274745d4ebde 100644 --- a/core/lib/include/debug.h +++ b/core/lib/include/debug.h @@ -44,17 +44,7 @@ extern "C" { */ #ifdef DEVELHELP #include "cpu_conf.h" -#define DEBUG_PRINT(...) \ - do { \ - if ((thread_get_active() == NULL) || \ - (thread_get_active()->stack_size >= \ - THREAD_EXTRA_STACKSIZE_PRINTF)) { \ - printf(__VA_ARGS__); \ - } \ - else { \ - puts("Cannot debug, stack too small. Consider using DEBUG_PUTS()."); \ - } \ - } while (0) +#define DEBUG_PRINT(...) do { printf(__VA_ARGS__); } while (0) #else #define DEBUG_PRINT(...) printf(__VA_ARGS__) #endif