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:
parent
c3c8d6ae27
commit
f209bf95ec
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue