diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2018-04-19 04:32:55 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-04-28 18:32:23 -0400 |
commit | 4f1eed7527e256edd10fab85d2651a35e530509f (patch) | |
tree | d7f43a4ed86674908bf5794e8c9d0a4db133089d /lib/vsprintf.c | |
parent | 14ad44ab466a8f4630c603f4c0bb5c57d0f27ae6 (diff) |
spl: Disable printf if not required
Now we have a guard for printf, disable it in the build if it's not
selected.
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Diffstat (limited to 'lib/vsprintf.c')
-rw-r--r-- | lib/vsprintf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 5f7a5f17dc..9f0ce8aa79 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -783,6 +783,7 @@ int sprintf(char *buf, const char *fmt, ...) return i; } +#if CONFIG_IS_ENABLED(PRINTF) int printf(const char *fmt, ...) { va_list args; @@ -824,7 +825,7 @@ int vprintf(const char *fmt, va_list args) puts(printbuffer); return i; } - +#endif void __assert_fail(const char *assertion, const char *file, unsigned line, const char *function) |