diff options
| -rw-r--r-- | firmware/debug.c | 6 | ||||
| -rw-r--r-- | firmware/debug.h | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/firmware/debug.c b/firmware/debug.c index 21583cd..00c37cc 100644 --- a/firmware/debug.c +++ b/firmware/debug.c @@ -215,13 +215,9 @@ void debug_init(void) void debugf(char *fmt, ...) { -#ifdef DEBUG va_list ap; - va_start( ap, fmt ); - vsnprintf( debugmembuf, sizeof(debugmembuf), fmt, ap ); + vfprintf( stderr, fmt, ap ); va_end( ap ); - printf( "%s", debugmembuf ); -#endif } #endif diff --git a/firmware/debug.h b/firmware/debug.h index 6825566..876b851 100644 --- a/firmware/debug.h +++ b/firmware/debug.h @@ -25,7 +25,7 @@ extern void debugf(char* fmt,...); #ifdef __GNUC__ /* */ -#ifdef DEBUG +#if defined(DEBUG) || defined(SIMULATOR) #define DEBUGF(...) debugf(__VA_ARGS__) #else #define DEBUGF(...) |