fix new debug routing and start debugging sram bulk

This commit is contained in:
David Voswinkel
2009-06-29 08:53:59 +02:00
parent f9724a3209
commit 2ebd2b75aa
9 changed files with 36 additions and 19 deletions

View File

@@ -5,6 +5,7 @@
#include "uart.h"
extern FILE uart_stdout;
extern int debug_level; /* the higher, the more messages... */
@@ -21,9 +22,10 @@ void debug(int level, char* format, ...) {
if (!(debug_level & level))
return;
va_start(args, format);
printf(format, args);
vprintf(format, args);
va_end(args);
#endif /* NDEBUG */
#endif /* NDEBUG && __GNUC__ */
}