aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2016-06-10 21:03:34 +0200
committerHans de Goede <hdegoede@redhat.com>2016-06-20 22:43:58 +0200
commitda70b4d14116d2b3d63840cd2ea01d0badf39e41 (patch)
tree0c2c010812331451cbcc3af7a1c952523561561d
parent46fd625dfee9ef69cd183f0cd11e09309a71a4e2 (diff)
downloadu-boot-da70b4d14116d2b3d63840cd2ea01d0badf39e41.zip
u-boot-da70b4d14116d2b3d63840cd2ea01d0badf39e41.tar.gz
u-boot-da70b4d14116d2b3d63840cd2ea01d0badf39e41.tar.bz2
tinyprintf: Add vprintf implementation
vprintf is used by panic() which is used in various SPL paths on some boards. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--lib/tiny-printf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tiny-printf.c b/lib/tiny-printf.c
index 3c65fc9..451f4f7 100644
--- a/lib/tiny-printf.c
+++ b/lib/tiny-printf.c
@@ -130,6 +130,11 @@ abort:
return 0;
}
+int vprintf(const char *fmt, va_list va)
+{
+ return _vprintf(fmt, va, putc);
+}
+
int printf(const char *fmt, ...)
{
va_list va;