develop/ktcc: Post-SVN tidy
- Move source code from `trunk` into program root directory. - Update build files and include paths. - Note: Line endings standardised from `CRLF` > `LF`, so best to view diffs with whitespace changes hidden.
This commit is contained in:
15
programs/develop/ktcc/libc.obj/source/stdio/debug_printf.c
Normal file
15
programs/develop/ktcc/libc.obj/source/stdio/debug_printf.c
Normal file
@@ -0,0 +1,15 @@
|
||||
/* Copyright (C) 2021 Logaev Maxim (turbocat2001), GPLv2 */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <limits.h>
|
||||
|
||||
void debug_printf(const char *format,...)
|
||||
{
|
||||
va_list ap;
|
||||
static char log_board[STDIO_MAX_MEM];
|
||||
va_start (ap, format);
|
||||
vsnprintf(log_board, STDIO_MAX_MEM, format, ap);
|
||||
va_end(ap);
|
||||
_ksys_debug_puts(log_board);
|
||||
}
|
Reference in New Issue
Block a user