mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
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: I1dff38e4d8ab03118e5f8832a16d82c2d2116ec9 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/431111 Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
parent
639a030e9d
commit
853ff7176e
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue