diff options
-rw-r--r-- | firmware/debug.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/firmware/debug.c b/firmware/debug.c index ae0fbe72c6..42b04ba605 100644 --- a/firmware/debug.c +++ b/firmware/debug.c | |||
@@ -25,7 +25,7 @@ | |||
25 | char debugmembuf[100]; | 25 | char debugmembuf[100]; |
26 | char debugbuf[200]; | 26 | char debugbuf[200]; |
27 | 27 | ||
28 | #ifndef CRT_DISPLAY /* allow non archos platforms to display output */ | 28 | #ifndef SIMULATOR /* allow non archos platforms to display output */ |
29 | 29 | ||
30 | static int debug_tx_ready(void) | 30 | static int debug_tx_ready(void) |
31 | { | 31 | { |
@@ -187,17 +187,15 @@ void debugf(char *fmt, ...) | |||
187 | #endif | 187 | #endif |
188 | } | 188 | } |
189 | 189 | ||
190 | #else | 190 | #else /* SIMULATOR code coming up */ |
191 | 191 | ||
192 | void debugf(char *fmt, ...) | 192 | void debugf(char *fmt, ...) |
193 | { | 193 | { |
194 | #ifdef DEBUG | ||
195 | va_list ap; | 194 | va_list ap; |
196 | 195 | ||
197 | va_start( ap, fmt ); | 196 | va_start( ap, fmt ); |
198 | vsnprintf( debugmembuf, sizeof(debugmembuf), fmt, ap ); | 197 | vsnprintf( debugmembuf, sizeof(debugmembuf), fmt, ap ); |
199 | va_end( ap ); | 198 | va_end( ap ); |
200 | printf( debugmembuf ); | 199 | printf( "%s", debugmembuf ); |
201 | #endif | ||
202 | } | 200 | } |
203 | #endif | 201 | #endif |