kolibrios-gitea/contrib/kolibri-libc/source/stdio/debug_printf.c

15 lines
307 B
C
Raw Normal View History

/* Copyright (C) 2021 Logaev Maxim (turbocat2001), GPLv2 */
#include <stdio.h>
#include <stdarg.h>
void debug_printf(const char *format,...)
{
va_list ap;
char log_board[300];
va_start (ap, format);
vsnprintf(log_board, 300, format, ap);
va_end(ap);
_ksys_debug_puts(log_board);
}