debug.h: check stacksize fixed

This commit is contained in:
Simon Brummer 2015-03-31 12:42:19 +02:00
parent 45554bf3a0
commit b495c24609

View File

@ -50,7 +50,7 @@ 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 > KERNEL_CONF_STACKSIZE_PRINTF)) { \ if ((sched_active_thread == NULL) || (sched_active_thread->stack_size >= KERNEL_CONF_STACKSIZE_PRINTF)) { \
printf(__VA_ARGS__); \ printf(__VA_ARGS__); \
} \ } \
else { \ else { \