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>
This commit is contained in:
@@ -37,9 +37,11 @@ void panic_str(const char *str)
|
||||
|
||||
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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user