diff options
author | Randall Spangler <rspangler@chromium.org> | 2017-01-20 14:48:53 -0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2017-01-24 09:34:58 +0100 |
commit | e80c6f6d3cd0eb7bde651364cc29d41da94f0082 (patch) | |
tree | 2a1d92f7222a2bc62dbb5c4ddd825fcbe87d3843 /src/vboot/vboot_logic.c | |
parent | 4ecccff72f1876c264303aac48cb7143fe36cecc (diff) | |
download | coreboot-e80c6f6d3cd0eb7bde651364cc29d41da94f0082.tar.xz |
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 <pgeorgi@chromium.org>
Original-Commit-Id: 853ff7176e97e5e1ab664d094e1914c9c94510aa
Original-Change-Id: I1dff38e4d8ab03118e5f8832a16d82c2d2116ec9
Original-Signed-off-by: Randall Spangler <rspangler@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/431111
Original-Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/18204
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/vboot/vboot_logic.c')
-rw-r--r-- | src/vboot/vboot_logic.c | 4 |
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); |