summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/debug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/debug.c b/firmware/debug.c
index ec33cfca68..21583cd4be 100644
--- a/firmware/debug.c
+++ b/firmware/debug.c
@@ -215,11 +215,13 @@ void debug_init(void)
215 215
216void debugf(char *fmt, ...) 216void debugf(char *fmt, ...)
217{ 217{
218#ifdef DEBUG
218 va_list ap; 219 va_list ap;
219 220
220 va_start( ap, fmt ); 221 va_start( ap, fmt );
221 vsnprintf( debugmembuf, sizeof(debugmembuf), fmt, ap ); 222 vsnprintf( debugmembuf, sizeof(debugmembuf), fmt, ap );
222 va_end( ap ); 223 va_end( ap );
223 printf( "%s", debugmembuf ); 224 printf( "%s", debugmembuf );
225#endif
224} 226}
225#endif 227#endif