diff options
Diffstat (limited to 'firmware/debug.c')
-rw-r--r-- | firmware/debug.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/firmware/debug.c b/firmware/debug.c index 0989e80b17..e3be2de168 100644 --- a/firmware/debug.c +++ b/firmware/debug.c | |||
@@ -216,28 +216,4 @@ void debugf(const char *fmt, ...) | |||
216 | #endif | 216 | #endif |
217 | } | 217 | } |
218 | 218 | ||
219 | |||
220 | #else /* SIMULATOR code coming up */ | ||
221 | |||
222 | void debug_init(void) | ||
223 | { | ||
224 | } | ||
225 | extern void *stderr; | ||
226 | |||
227 | void debugf(const char *fmt, ...) | ||
228 | { | ||
229 | va_list ap; | ||
230 | va_start( ap, fmt ); | ||
231 | vfprintf( stderr, fmt, ap ); | ||
232 | va_end( ap ); | ||
233 | } | ||
234 | |||
235 | void ldebugf(const char* file, int line, const char *fmt, ...) | ||
236 | { | ||
237 | va_list ap; | ||
238 | va_start( ap, fmt ); | ||
239 | fprintf( stderr, "%s:%d ", file, line ); | ||
240 | vfprintf( stderr, fmt, ap ); | ||
241 | va_end( ap ); | ||
242 | } | ||
243 | #endif | 219 | #endif |