1 /* $Id: printf.c,v 1.5 1996/04/04 16:31:07 tridge Exp $
2 * printf.c: Internal prom library printf facility.
4 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
7 /* This routine is internal to the prom library, no one else should know
8 * about or use it! It's simple and smelly anyway....
11 #include <linux/config.h>
12 #include <linux/kernel.h>
14 #include <asm/openprom.h>
15 #include <asm/oplib.h>
18 extern int kgdb_initialized
;
21 static char ppbuf
[1024];
24 prom_printf(char *fmt
, ...)
34 i
= vsprintf(ppbuf
+ 1, fmt
, args
) + 1;
36 i
= vsprintf(ppbuf
, fmt
, args
);
42 ap_write(1,bptr
,strlen(bptr
));
46 if (kgdb_initialized
) {
47 printk("kgdb_initialized = %d\n", kgdb_initialized
);
51 while((ch
= *(bptr
++)) != 0) {