summaryrefslogtreecommitdiff
path: root/common/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/console.c')
-rw-r--r--common/console.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/common/console.c b/common/console.c
index 86ed584211..8c94aa7656 100644
--- a/common/console.c
+++ b/common/console.c
@@ -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;