]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/console.c
Patches by Murray Jensen, 17 Jun 2003:
[people/ms/u-boot.git] / common / console.c
index 86ed5842115177a696340d6b32e907c64cac0e85..8c94aa7656c2c099c0112182379a6bfbbe4d6276 100644 (file)
@@ -232,6 +232,20 @@ void printf (const char *fmt, ...)
        puts (printbuffer);
 }
 
+void vprintf (const char *fmt, va_list args)
+{
+       uint i;
+       char printbuffer[CFG_PBSIZE];
+
+       /* For this to work, printbuffer must be larger than
+        * anything we ever want to print.
+        */
+       i = vsprintf (printbuffer, fmt, args);
+
+       /* Print the string */
+       puts (printbuffer);
+}
+
 /* test if ctrl-c was pressed */
 static int ctrlc_disabled = 0; /* see disable_ctrl() */
 static int ctrlc_was_pressed = 0;