From aa5c8f78f98614130cfb4802faa30b6a6b92e815 Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Mon, 26 Dec 2016 10:58:16 -0800 Subject: [PATCH] console: Enable do_printk_va_list for VBOOT Use CONFIG_VBOOT to enable do_printk_va_list to match the conditionals in include/console/console.h and the only caller is vboot/vboot_logic.c. CONFIG_VBOOT is also selected for CONFIG_CHROMEOS. TEST=Build and run on Galileo Gen2 Change-Id: Ia115c74afa498a14d5edd6f7940ec2edc124516f Signed-off-by: Lee Leahy Reviewed-on: https://review.coreboot.org/17967 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/console/printk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/console/printk.c b/src/console/printk.c index 855c841284..2f7e27719b 100644 --- a/src/console/printk.c +++ b/src/console/printk.c @@ -79,7 +79,7 @@ int do_printk(int msg_level, const char *fmt, ...) return i; } -#if IS_ENABLED (CONFIG_CHROMEOS) +#if IS_ENABLED (CONFIG_VBOOT) void do_printk_va_list(int msg_level, const char *fmt, va_list args) { if (!console_log_level(msg_level)) @@ -87,4 +87,4 @@ void do_printk_va_list(int msg_level, const char *fmt, va_list args) vtxprintf(wrap_putchar, fmt, args, NULL); console_tx_flush(); } -#endif /* CONFIG_CHROMEOS */ +#endif /* CONFIG_VBOOT */