OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [mips64/] [lib/] [promlib.c] - Rev 1765

Compare with Previous | Blame | View Log

#include <stdarg.h>
#include <linux/kernel.h>
 
extern void prom_putchar(char);
 
void prom_printf(char *fmt, ...)
{
	va_list args;
	char ppbuf[1024];
	char *bptr;
 
	va_start(args, fmt);
	vsprintf(ppbuf, fmt, args);
 
	bptr = ppbuf;
 
	while (*bptr != 0) {
		if (*bptr == '\n')
			prom_putchar('\r');
 
		prom_putchar(*bptr++);
	}
	va_end(args);
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.