All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] tinyprintf: Add vprintf implementation
@ 2016-06-10 19:04 Hans de Goede
  2016-06-10 19:04 ` [U-Boot] [PATCH 2/2] sunxi: Select USE_TINY_PRINTF Hans de Goede
  2016-06-12 21:15 ` [U-Boot] [PATCH 1/2] tinyprintf: Add vprintf implementation Simon Glass
  0 siblings, 2 replies; 5+ messages in thread
From: Hans de Goede @ 2016-06-10 19:04 UTC (permalink / raw)
  To: u-boot

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;
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 2/2] sunxi: Select USE_TINY_PRINTF
  2016-06-10 19:04 [U-Boot] [PATCH 1/2] tinyprintf: Add vprintf implementation Hans de Goede
@ 2016-06-10 19:04 ` Hans de Goede
  2016-06-12 12:28   ` Ian Campbell
  2016-06-12 21:15   ` Simon Glass
  2016-06-12 21:15 ` [U-Boot] [PATCH 1/2] tinyprintf: Add vprintf implementation Simon Glass
  1 sibling, 2 replies; 5+ messages in thread
From: Hans de Goede @ 2016-06-10 19:04 UTC (permalink / raw)
  To: u-boot

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"
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 2/2] sunxi: Select USE_TINY_PRINTF
  2016-06-10 19:04 ` [U-Boot] [PATCH 2/2] sunxi: Select USE_TINY_PRINTF Hans de Goede
@ 2016-06-12 12:28   ` Ian Campbell
  2016-06-12 21:15   ` Simon Glass
  1 sibling, 0 replies; 5+ messages in thread
From: Ian Campbell @ 2016-06-12 12:28 UTC (permalink / raw)
  To: u-boot

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"

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 1/2] tinyprintf: Add vprintf implementation
  2016-06-10 19:04 [U-Boot] [PATCH 1/2] tinyprintf: Add vprintf implementation Hans de Goede
  2016-06-10 19:04 ` [U-Boot] [PATCH 2/2] sunxi: Select USE_TINY_PRINTF Hans de Goede
@ 2016-06-12 21:15 ` Simon Glass
  1 sibling, 0 replies; 5+ messages in thread
From: Simon Glass @ 2016-06-12 21:15 UTC (permalink / raw)
  To: u-boot

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>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 2/2] sunxi: Select USE_TINY_PRINTF
  2016-06-10 19:04 ` [U-Boot] [PATCH 2/2] sunxi: Select USE_TINY_PRINTF Hans de Goede
  2016-06-12 12:28   ` Ian Campbell
@ 2016-06-12 21:15   ` Simon Glass
  1 sibling, 0 replies; 5+ messages in thread
From: Simon Glass @ 2016-06-12 21:15 UTC (permalink / raw)
  To: u-boot

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>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-06-12 21:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-10 19:04 [U-Boot] [PATCH 1/2] tinyprintf: Add vprintf implementation Hans de Goede
2016-06-10 19:04 ` [U-Boot] [PATCH 2/2] sunxi: Select USE_TINY_PRINTF Hans de Goede
2016-06-12 12:28   ` Ian Campbell
2016-06-12 21:15   ` Simon Glass
2016-06-12 21:15 ` [U-Boot] [PATCH 1/2] tinyprintf: Add vprintf implementation Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.