tinyprintf: Add vprintf implementation
Subsystems (2)
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 <[email protected]>
--- lib/tiny-printf.c | 5 +++++ 1 file changed, 5 insertions(+)
lib/tiny-printf.c +5 -0
@@ -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;
Signature · 1 line
2.7.4
PATCH 2/2 sunxi: Select USE_TINY_PRINTF
This gives us a bit more breathing room wrt our SPL size.
Signed-off-by Hans de Goede <[email protected]>
--- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/Kconfig +1 -0
@@ -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"
Signature · 1 line
2.7.4
PATCH 2/2 sunxi: Select USE_TINY_PRINTF
Quoted 3 lines · Hans de Goede
This gives us a bit more breathing room wrt our SPL size.
Signed-off-by Hans de Goede <[email protected]>
Acked-by Ian Campbell <[email protected]>
(and the first one too, FWIW)
Quoted 16 lines
---
?arch/arm/Kconfig | 1 +
?1 file changed, 1 insertion(+)arch/arm/Kconfig +0
-0@@ -611,6 +611,7 @@ config ARCH_SUNXI? select USB
? selectUSB_STORAGE
? selectUSB_KEYBOARDarch/arm/Kconfig +1
-0+ select USE_TINY_PRINTF?
?configTARGET_TS4800
? bool "Support TS4800"
PATCH 2/2 sunxi: Select USE_TINY_PRINTF
In reply to Hans de GoedeQuoted 6 lines · Hans de Goede
This gives us a bit more breathing room wrt our SPL size.
Signed-off-by Hans de Goede <[email protected]>--- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)
Reviewed-by Simon Glass <[email protected]>
PATCH 1/2 tinyprintf: Add vprintf implementation
In reply to Hans de GoedeQuoted 7 lines · Hans de Goede
vprintf is used by
panic()which is used in various SPL paths on some boards.Signed-off-by Hans de Goede <[email protected]>--- lib/tiny-printf.c | 5 +++++ 1 file changed, 5 insertions(+)
Reviewed-by Simon Glass <[email protected]>