]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - examples/api/libgenwrap.c
mtd/nand: docg4: fix compiler warnings
[karo-tx-uboot.git] / examples / api / libgenwrap.c
index 2b107d9797f45eaaf3bc5bee1ef7d8eac93cd62e..873cf343e8ff62b58f1d2b06b222bd81b5a997be 100644 (file)
@@ -23,7 +23,7 @@
  *
  *
  * This is is a set of wrappers/stubs that allow to use certain routines from
- * U-Boot's lib_generic in the standalone app. This way way we can re-use
+ * U-Boot's lib in the standalone app. This way way we can re-use
  * existing code e.g. operations on strings and similar.
  *
  */
@@ -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)