commit | d07d0a096b8d5486a3691adceb5bb6b07ac47e10 | [log] [tgz] |
---|---|---|
author | Alex Kiernan <alex.kiernan@gmail.com> | Thu Apr 19 04:32:55 2018 +0000 |
committer | Tom Rini <trini@konsulko.com> | Sat Apr 28 18:32:23 2018 -0400 |
tree | d7f43a4ed86674908bf5794e8c9d0a4db133089d | |
parent | 5b404285483f7c4d00080afcdc59364f6d4a08fa [diff] [blame] |
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>
diff --git a/lib/panic.c b/lib/panic.c index e2b8b74..0efa134 100644 --- a/lib/panic.c +++ b/lib/panic.c
@@ -37,9 +37,11 @@ void panic(const char *fmt, ...) { +#if CONFIG_IS_ENABLED(PRINTF) va_list args; va_start(args, fmt); vprintf(fmt, args); va_end(args); +#endif panic_finish(); }