summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vboot/vboot_logic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vboot/vboot_logic.c b/src/vboot/vboot_logic.c
index bfed7d40e1..af7e947911 100644
--- a/src/vboot/vboot_logic.c
+++ b/src/vboot/vboot_logic.c
@@ -42,7 +42,9 @@ void vb2ex_printf(const char *func, const char *fmt, ...)
{
va_list args;
- printk(BIOS_INFO, "VB2:%s() ", func);
+ if (func)
+ printk(BIOS_INFO, "VB2:%s() ", func);
+
va_start(args, fmt);
do_printk_va_list(BIOS_INFO, fmt, args);
va_end(args);