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/kernel.h>
13 #include <asm/openprom.h>
14 #include <asm/oplib.h>
17 extern int kgdb_initialized;
20 static char ppbuf[1024];
23 prom_printf(char *fmt, ...)
33 i = vsprintf(ppbuf + 1, fmt, args) + 1;
35 i = vsprintf(ppbuf, fmt, args);
41 if (kgdb_initialized) {
42 printk("kgdb_initialized = %d\n", kgdb_initialized);
46 while((ch = *(bptr++)) != 0) {