- Linus: more PageDirty / swapcache handling
[davej-history.git] / arch / mips64 / arc / printf.c
blob664bb270bf3df3c612f7ad3ad1358839965bebcb
1 /* $Id: printf.c,v 1.1 1999/08/20 21:13:33 ralf Exp $
3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
5 * for more details.
7 * Putting things on the screen using SGI arcs PROM facilities.
9 * Copyright (C) 1996 David S. Miller (dm@sgi.com)
11 #include <linux/init.h>
12 #include <linux/kernel.h>
14 #include <asm/sgialib.h>
16 static char ppbuf[1024];
18 void prom_printf(char *fmt, ...)
20 va_list args;
21 char ch, *bptr;
22 int i;
24 va_start(args, fmt);
25 i = vsprintf(ppbuf, fmt, args);
27 bptr = ppbuf;
29 while((ch = *(bptr++)) != 0) {
30 if(ch == '\n')
31 prom_putchar('\r');
33 prom_putchar(ch);
35 va_end(args);
36 return;