diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-03-01 06:56:43 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-03-04 14:02:37 -0500 |
commit | 36a885306fdf7bb557c773309c993bfb2d0d693c (patch) | |
tree | 643b246c90653c9451ff7fecff74a79c3de8042c /arch/mips/arc/console.c | |
parent | ca471c86043f4a8b01cba02ba2d3431fddcaf606 (diff) |
[MIPS] Fix and cleanup the mess that a dozen prom_printf variants are.
early_printk is a so much saner thing.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/arc/console.c')
-rw-r--r-- | arch/mips/arc/console.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/arch/mips/arc/console.c b/arch/mips/arc/console.c index 6a9d144512c0..0fe6032999cb 100644 --- a/arch/mips/arc/console.c +++ b/arch/mips/arc/console.c | |||
@@ -29,35 +29,3 @@ void prom_putchar(char c) | |||
29 | ArcWrite(1, &it, 1, &cnt); | 29 | ArcWrite(1, &it, 1, &cnt); |
30 | bc_enable(); | 30 | bc_enable(); |
31 | } | 31 | } |
32 | |||
33 | char prom_getchar(void) | ||
34 | { | ||
35 | ULONG cnt; | ||
36 | CHAR c; | ||
37 | |||
38 | bc_disable(); | ||
39 | ArcRead(0, &c, 1, &cnt); | ||
40 | bc_enable(); | ||
41 | |||
42 | return c; | ||
43 | } | ||
44 | |||
45 | void prom_printf(char *fmt, ...) | ||
46 | { | ||
47 | va_list args; | ||
48 | char ppbuf[1024]; | ||
49 | char *bptr; | ||
50 | |||
51 | va_start(args, fmt); | ||
52 | vsprintf(ppbuf, fmt, args); | ||
53 | |||
54 | bptr = ppbuf; | ||
55 | |||
56 | while (*bptr != 0) { | ||
57 | if (*bptr == '\n') | ||
58 | prom_putchar('\r'); | ||
59 | |||
60 | prom_putchar(*bptr++); | ||
61 | } | ||
62 | va_end(args); | ||
63 | } | ||