diff options
author | David Hendricks <dhendricks@fb.com> | 2018-01-28 18:01:10 -0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-04-09 08:18:16 +0000 |
commit | 6053a9ce05c1ca9c8919689fd766e14f4a8b4884 (patch) | |
tree | 26a227637a18b74a5d9d53ea6b0fb646e76dff77 /src/include/string.h | |
parent | b90c0d90cff03e5f7cbf2c3413f8766983589762 (diff) | |
download | coreboot-6053a9ce05c1ca9c8919689fd766e14f4a8b4884.tar.xz |
console: Expose vsnprintf
It's a standard function.
Change-Id: I039cce2dfc4e168804eb7d12b76a29af712ac7a1
Signed-off-by: David Hendricks <dhendricks@fb.com>
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/23616
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include/string.h')
-rw-r--r-- | src/include/string.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/string.h b/src/include/string.h index d2d7bb8781..fc96393c48 100644 --- a/src/include/string.h +++ b/src/include/string.h @@ -4,6 +4,10 @@ #include <stddef.h> #include <stdlib.h> +#if !defined(__ROMCC__) +#include <console/vtxprintf.h> +#endif + /* Stringify a token */ #ifndef STRINGIFY #define _STRINGIFY(x) #x @@ -17,6 +21,7 @@ int memcmp(const void *s1, const void *s2, size_t n); void *memchr(const void *s, int c, size_t n); #if !defined(__ROMCC__) int snprintf(char *buf, size_t size, const char *fmt, ...); +int vsnprintf(char *buf, size_t size, const char *fmt, va_list args); #endif // simple string functions |