net-snk: Remove custom printf version

In favor of the libc one

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
Benjamin Herrenschmidt 2014-07-16 19:27:40 +10:00 committed by Nikunj A Dadhania
parent c3c8d6ae27
commit f209bf95ec
2 changed files with 1 additions and 13 deletions

View File

@ -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);

View File

@ -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;
}