From e80c6f6d3cd0eb7bde651364cc29d41da94f0082 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Fri, 20 Jan 2017 14:48:53 -0800 Subject: vboot: vb2ex_printf() ignores null function name Currently, it will print the function name as a prefix to the debug output. Make it so that a null function name won't get printed, so that it's possible to print little bits of debug output. BUG=chromium:683391 BRANCH=none TEST=build_packages --board=reef chromeos-firmware Change-Id: I046fa766773fc08a29460db1f884d7902692d182 Signed-off-by: Patrick Georgi Original-Commit-Id: 853ff7176e97e5e1ab664d094e1914c9c94510aa Original-Change-Id: I1dff38e4d8ab03118e5f8832a16d82c2d2116ec9 Original-Signed-off-by: Randall Spangler Original-Reviewed-on: https://chromium-review.googlesource.com/431111 Original-Reviewed-by: Julius Werner Reviewed-on: https://review.coreboot.org/18204 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/vboot/vboot_logic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/vboot') 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); -- cgit v1.2.3