diff --git a/contrib/C_Layer/libguic_kolibri/kolibri_debug.h b/contrib/C_Layer/libguic_kolibri/kolibri_debug.h index 5b0e1a3d04..f97f8b8b6a 100644 --- a/contrib/C_Layer/libguic_kolibri/kolibri_debug.h +++ b/contrib/C_Layer/libguic_kolibri/kolibri_debug.h @@ -1,6 +1,11 @@ #ifndef KOLIBRI_DEBUG_H #define KOLIBRI_DEBUG_H +#include <_ansi.h> +#include +#include +#include + /* Write a printf() like function (variable argument list) for writing to debug board */ @@ -17,5 +22,15 @@ void __attribute__ ((noinline)) debug_board_write_str(const char* str){ debug_board_write_byte(*str++); } +void fdebug_board_write_str(const char *format,...) +{ + va_list ap; + char log_board[300]; + + va_start (ap, format); + vsprintf(log_board, format, ap); + va_end(ap); + debug_board_write_str(log_board); +} #endif /* KOLIBRI_DEBUG_H */