]> git.baikalelectronics.ru Git - uboot.git/commit
tiny-printf: Support vsnprintf()
authorSimon South <simon@simonsouth.net>
Wed, 2 Oct 2019 14:55:07 +0000 (10:55 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 31 Oct 2019 11:22:53 +0000 (07:22 -0400)
commitaf1c610f11f19c92d9e1ecc6987a2100254acf6b
treec0b5b8f7ac3647577352371be26db914592a0331
parentaae951e2ca9630fb9e9583cef9b1c486e5c55444
tiny-printf: Support vsnprintf()

Add a simple implementation of this function, to allow logging to be
enabled in the SPL or TPL for systems that rely on the tiny printf()
implementation.

To keep the code size small,

- The function is built only when logging is enabled, as it
  (currently) is not needed otherwise; and
- Like the existing implementation of snprintf(), its buffer-size
  parameter is ignored.

Signed-off-by: Simon South <simon@simonsouth.net>
lib/tiny-printf.c