/* This is is a set of wrappers/stubs that allow to use certain routines from U-Boot's lib_generic in the standalone app. This way way we can re-use existing code e.g. operations on strings and similar. printf() and vprintf() are stolen from u-boot/common/console.c  */
void printf(const char *fmt,...)
/* This is is a set of wrappers/stubs that allow to use certain routines from U-Boot's lib_generic in the standalone app. This way way we can re-use existing code e.g. operations on strings and similar. printf() and vprintf() are stolen from u-boot/common/console.c  */
void printf(const char *fmt,...)
{
	va_list args;
	uint i;
	char printbuffer[256];
	va_start (args, fmt);
	i = vsprintf (printbuffer, fmt, args);
	va_end (args);
	ub_puts (printbuffer);
}