aboutsummaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2014-07-31 14:29:46 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-08-08 16:07:25 +1000
commit89a9ca379f2bcf618ae8796dfdd277424249da32 (patch)
treee7e8af7941352056d1e57d5e0e05593a113d59f9 /libc
parente139f2558d34da0ea29f0eaae5843efa0b1aaf5c (diff)
downloadskiboot-89a9ca379f2bcf618ae8796dfdd277424249da32.zip
skiboot-89a9ca379f2bcf618ae8796dfdd277424249da32.tar.gz
skiboot-89a9ca379f2bcf618ae8796dfdd277424249da32.tar.bz2
replace printf() with console log, level 5 aka INFO messages
Replace the libc printf implementation with a wrapper that does fancy log things such as display timestamp and the log level. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'libc')
-rw-r--r--libc/stdio/Makefile.inc2
-rw-r--r--libc/stdio/printf.c27
2 files changed, 1 insertions, 28 deletions
diff --git a/libc/stdio/Makefile.inc b/libc/stdio/Makefile.inc
index 62276f1..f375f93 100644
--- a/libc/stdio/Makefile.inc
+++ b/libc/stdio/Makefile.inc
@@ -14,7 +14,7 @@
SUBDIRS += $(LIBCDIR)/stdio
STDIO_OBJS = fscanf.o sprintf.o vfprintf.o vsnprintf.o vsprintf.o fprintf.o \
- printf.o setvbuf.o fputc.o puts.o fputs.o putchar.o scanf.o \
+ setvbuf.o fputc.o puts.o fputs.o putchar.o scanf.o \
stdchnls.o vfscanf.o vsscanf.o fileno.o snprintf.o
STDIO = $(LIBCDIR)/stdio/built-in.o
diff --git a/libc/stdio/printf.c b/libc/stdio/printf.c
deleted file mode 100644
index 01f4592..0000000
--- a/libc/stdio/printf.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/******************************************************************************
- * Copyright (c) 2004, 2008 IBM Corporation
- * All rights reserved.
- * This program and the accompanying materials
- * are made available under the terms of the BSD License
- * which accompanies this distribution, and is available at
- * http://www.opensource.org/licenses/bsd-license.php
- *
- * Contributors:
- * IBM Corporation - initial implementation
- *****************************************************************************/
-
-#include "stdio.h"
-
-
-int printf(const char* fmt, ...)
-{
- int count;
- va_list ap;
-
- va_start(ap, fmt);
- count = vfprintf(stdout, fmt, ap);
- va_end(ap);
-
- return count;
-}
-