[U-Boot] [PATCH 1/2] 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 --- lib/tiny-printf.c | 5 +++++ 1 file changed, 5 insertions(+)
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;

This gives us a bit more breathing room wrt our SPL size.
Signed-off-by: Hans de Goede hdegoede@redhat.com --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index e75c4c0..4aeb4d2 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -611,6 +611,7 @@ config ARCH_SUNXI select USB select USB_STORAGE select USB_KEYBOARD + select USE_TINY_PRINTF
config TARGET_TS4800 bool "Support TS4800"

On Fri, 2016-06-10 at 21:04 +0200, Hans de Goede wrote:
This gives us a bit more breathing room wrt our SPL size.
Signed-off-by: Hans de Goede hdegoede@redhat.com
Acked-by: Ian Campbell ijc@hellion.org.uk
(and the first one too, FWIW)
arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index e75c4c0..4aeb4d2 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -611,6 +611,7 @@ config ARCH_SUNXI select USB select USB_STORAGE select USB_KEYBOARD
- select USE_TINY_PRINTF
config TARGET_TS4800 bool "Support TS4800"

On 10 June 2016 at 13:04, Hans de Goede hdegoede@redhat.com wrote:
This gives us a bit more breathing room wrt our SPL size.
Signed-off-by: Hans de Goede hdegoede@redhat.com
arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)
Reviewed-by: Simon Glass sjg@chromium.org

On 10 June 2016 at 13:04, Hans de Goede hdegoede@redhat.com wrote:
vprintf is used by panic() which is used in various SPL paths on some boards.
Signed-off-by: Hans de Goede hdegoede@redhat.com
lib/tiny-printf.c | 5 +++++ 1 file changed, 5 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org
participants (3)
-
Hans de Goede
-
Ian Campbell
-
Simon Glass