| /* $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) |
| /* This routine is internal to the prom library, no one else should know |
| * about or use it! It's simple and smelly anyway.... |
| #include <linux/kernel.h> |
| #include <asm/openprom.h> |
| extern int kgdb_initialized; |
| prom_printf(char *fmt, ...) |
| i = vsprintf(ppbuf + 1, fmt, args) + 1; |
| i = vsprintf(ppbuf, fmt, args); |
| ap_write(1,bptr,strlen(bptr)); |
| printk("kgdb_initialized = %d\n", kgdb_initialized); |
| while((ch = *(bptr++)) != 0) { |