diff options
Diffstat (limited to 'examples/api/libgenwrap.c')
-rw-r--r-- | examples/api/libgenwrap.c | 40 |
1 files changed, 4 insertions, 36 deletions
diff --git a/examples/api/libgenwrap.c b/examples/api/libgenwrap.c index c1afa5bc09..ba51007b14 100644 --- a/examples/api/libgenwrap.c +++ b/examples/api/libgenwrap.c @@ -16,46 +16,14 @@ #include "glue.h" -/* - * printf() and vprintf() are stolen from u-boot/common/console.c - */ -int printf (const char *fmt, ...) -{ - va_list args; - uint i; - char printbuffer[256]; - - va_start (args, fmt); - - /* For this to work, printbuffer must be larger than - * anything we ever want to print. - */ - i = vsprintf (printbuffer, fmt, args); - va_end (args); - - /* Print the string */ - ub_puts (printbuffer); - return i; -} - -int vprintf (const char *fmt, va_list args) +void putc(const char c) { - uint i; - char printbuffer[256]; - - /* For this to work, printbuffer must be larger than - * anything we ever want to print. - */ - i = vsprintf (printbuffer, fmt, args); - - /* Print the string */ - ub_puts (printbuffer); - return i; + ub_putc(c); } -void putc (const char c) +void puts(const char *s) { - ub_putc(c); + ub_puts(s); } void __udelay(unsigned long usec) |