X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Fdebug.h;h=dde6af5e50f4dfb0df6047ec7fe3fa8422d5868d;hb=77b037974e46f78a0c6746753bf8d1c07b9630fc;hp=2b85e5f3f28c538f0bf8a8f30db46c8b45274ea1;hpb=23d3db0da5e4ddda30fb8ddd4bdbec15741f669e;p=bertos.git diff --git a/bertos/cfg/debug.h b/bertos/cfg/debug.h index 2b85e5f3..dde6af5e 100644 --- a/bertos/cfg/debug.h +++ b/bertos/cfg/debug.h @@ -40,8 +40,8 @@ * \author Bernardo Innocenti */ -#ifndef CFG_DEBUG_H -#define CFG_DEBUG_H +#ifndef BERTOS_DEBUG_H +#define BERTOS_DEBUG_H #include #include @@ -72,7 +72,6 @@ #endif #ifdef _DEBUG - // STLport specific: enable extra checks #define __STL_DEBUG 1 @@ -119,7 +118,7 @@ */ #define DB(x) x - #include /* CONFIG_KDEBUG_ASSERT_NO_TEXT */ + #include "cfg/cfg_debug.h" /* CONFIG_KDEBUG_ASSERT_NO_TEXT */ #include /* CPU_HARVARD */ /* These are implemented in drv/kdebug.c */ @@ -187,6 +186,7 @@ #define TRACEMSG(...) do {} while(0) #endif + /** * \name Walls to detect data corruption * \{ @@ -305,9 +305,9 @@ #define kprintf(fmt,...) do { (void)(fmt); } while(0) #else /* ...but GCC can. */ - INLINE void kprintf(UNUSED_ARG(const char *, fmt), ...) { /* nop */ } + INLINE void kprintf(UNUSED_ARG(const char *, fmt), ...) { /* nop */ } #endif #endif /* _DEBUG */ -#endif /* CFG_DEBUG_H */ +#endif /* BERTOS_DEBUG_H */