aboutsummaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-07-16 19:27:40 +1000
committerNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2014-10-29 16:17:38 +0530
commitf209bf95ecb8dff5217bd93339596d2a4a293cbd (patch)
tree9abcd90e95bf52f8d9b5dbca1583ada84e9f89b8 /clients
parentc3c8d6ae27a2c86cd133b285d3e9bbf5ef047701 (diff)
downloadSLOF-f209bf95ecb8dff5217bd93339596d2a4a293cbd.zip
SLOF-f209bf95ecb8dff5217bd93339596d2a4a293cbd.tar.gz
SLOF-f209bf95ecb8dff5217bd93339596d2a4a293cbd.tar.bz2
net-snk: Remove custom printf version
In favor of the libc one Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'clients')
-rw-r--r--clients/net-snk/include/kernel.h2
-rw-r--r--clients/net-snk/kernel/systemcall.c12
2 files changed, 1 insertions, 13 deletions
diff --git a/clients/net-snk/include/kernel.h b/clients/net-snk/include/kernel.h
index 847f296..4d6be2d 100644
--- a/clients/net-snk/include/kernel.h
+++ b/clients/net-snk/include/kernel.h
@@ -17,12 +17,12 @@
#include <stdint.h>
#include <unistd.h>
#include <string.h>
+#include <stdio.h>
#include <of.h>
uint64_t get_time(void);
int getchar(void);
-int printf(const char *, ...);
void *malloc_aligned(size_t size, int align);
int pre_open_ih(int fd, ihandle_t ih);
diff --git a/clients/net-snk/kernel/systemcall.c b/clients/net-snk/kernel/systemcall.c
index 055a3f8..52c45ca 100644
--- a/clients/net-snk/kernel/systemcall.c
+++ b/clients/net-snk/kernel/systemcall.c
@@ -174,15 +174,3 @@ void exit(int status)
{
_exit(status);
}
-
-int printf(const char* fmt, ...)
-{
- int count;
- va_list ap;
- char buffer[256];
- va_start (ap, fmt);
- count=vsprintf(buffer, fmt, ap);
- write (1, buffer, count);
- va_end (ap);
- return count;
-}