summaryrefslogblamecommitdiffstats
path: root/src/target/firmware/lib/printf.c
blob: a4fc68761f90d31a87ae2afa505cabf99ef03b24 (plain) (tree)


















                                                                       

#include <stdio.h>
#include <stdarg.h>

static char printf_buffer[1024];

int printf(const char *fmt, ...)
{
	va_list args;
	int r;

	va_start(args, fmt);
	r = vsnprintf(printf_buffer, sizeof(printf_buffer), fmt, args);
	va_end(args);

	puts(printf_buffer);

	return r;
}