patch-1.3.93 linux/arch/sparc/prom/printf.c
Next file: linux/arch/sparc/prom/tree.c
Previous file: linux/arch/sparc/prom/palloc.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Sun Apr 21 12:30:32 1996
- Orig file:
v1.3.92/linux/arch/sparc/prom/printf.c
- Orig date:
Sat Nov 25 03:00:12 1995
diff -u --recursive --new-file v1.3.92/linux/arch/sparc/prom/printf.c linux/arch/sparc/prom/printf.c
@@ -1,4 +1,4 @@
-/* $Id: printf.c,v 1.4 1995/11/25 01:00:10 davem Exp $
+/* $Id: printf.c,v 1.5 1996/04/04 16:31:07 tridge Exp $
* printf.c: Internal prom library printf facility.
*
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
@@ -8,6 +8,7 @@
* about or use it! It's simple and smelly anyway....
*/
+#include <linux/config.h>
#include <linux/kernel.h>
#include <asm/openprom.h>
@@ -27,13 +28,16 @@
bptr = ppbuf;
+#if CONFIG_AP1000
+ ap_write(1,bptr,strlen(bptr));
+#else
while((ch = *(bptr++)) != 0) {
if(ch == '\n')
prom_putchar('\r');
prom_putchar(ch);
}
-
+#endif
va_end(args);
return;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this