]> git.sur5r.net Git - u-boot/blobdiff - examples/api/libgenwrap.c
mx51evk: Change default environment to cope with OE changes
[u-boot] / examples / api / libgenwrap.c
index b435ddecba304a25d828a9495c9f4d4a64ce004c..873cf343e8ff62b58f1d2b06b222bd81b5a997be 100644 (file)
@@ -37,7 +37,7 @@
 /*
  * printf() and vprintf() are stolen from u-boot/common/console.c
  */
-void printf (const char *fmt, ...)
+int printf (const char *fmt, ...)
 {
        va_list args;
        uint i;
@@ -53,9 +53,10 @@ void printf (const char *fmt, ...)
 
        /* Print the string */
        ub_puts (printbuffer);
+       return i;
 }
 
-void vprintf (const char *fmt, va_list args)
+int vprintf (const char *fmt, va_list args)
 {
        uint i;
        char printbuffer[256];
@@ -67,6 +68,7 @@ void vprintf (const char *fmt, va_list args)
 
        /* Print the string */
        ub_puts (printbuffer);
+       return i;
 }
 
 void putc (const char c)
@@ -79,9 +81,10 @@ void __udelay(unsigned long usec)
        ub_udelay(usec);
 }
 
-void do_reset (void)
+int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
        ub_reset();
+       return 0;
 }
 
 void *malloc (size_t len)