[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>
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
# Makefile for MIPS-specific library files..
|
||||
#
|
||||
|
||||
lib-y += csum_partial.o memcpy.o memcpy-inatomic.o memset.o promlib.o \
|
||||
strlen_user.o strncpy_user.o strnlen_user.o uncached.o
|
||||
lib-y += csum_partial.o memcpy.o memcpy-inatomic.o memset.o strlen_user.o \
|
||||
strncpy_user.o strnlen_user.o uncached.o
|
||||
|
||||
obj-y += iomap.o
|
||||
obj-$(CONFIG_PCI) += iomap-pci.o
|
||||
|
@@ -1,24 +0,0 @@
|
||||
#include <stdarg.h>
|
||||
#include <linux/kernel.h>
|
||||
|
||||
extern void prom_putchar(char);
|
||||
|
||||
void prom_printf(char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
char ppbuf[1024];
|
||||
char *bptr;
|
||||
|
||||
va_start(args, fmt);
|
||||
vsprintf(ppbuf, fmt, args);
|
||||
|
||||
bptr = ppbuf;
|
||||
|
||||
while (*bptr != 0) {
|
||||
if (*bptr == '\n')
|
||||
prom_putchar('\r');
|
||||
|
||||
prom_putchar(*bptr++);
|
||||
}
|
||||
va_end(args);
|
||||
}
|
Reference in New Issue
Block a user