From e0a4e0946ddc15314a6d55b573ab264c81613ad6 Mon Sep 17 00:00:00 2001 From: Serhii Sakhno Date: Tue, 12 Apr 2016 20:37:56 +0000 Subject: [PATCH] kolibri_editbox.h: add fdebug_board_write_str - printf() like function git-svn-id: svn://kolibrios.org@6398 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/C_Layer/libguic_kolibri/kolibri_debug.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 */