sh: Update lowlevel_init.S of mpr2
[oweals/u-boot.git] / examples / api / libgenwrap.c
index 2b107d9797f45eaaf3bc5bee1ef7d8eac93cd62e..9733bbc52e32a85e75b35ea1ae56b95f750bc3b1 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)