summaryrefslogtreecommitdiff
path: root/firmware/lib/vboot_ui_common.c
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2019-03-01 14:23:30 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-03-09 01:18:53 -0800
commit9e53b92e50165b777111f159daa2b4e3b3c8b355 (patch)
treebd354022acf50dafa0da42ca6e0f0590a0a2f3c9 /firmware/lib/vboot_ui_common.c
parente20d92ab46a9a60925ede8892c59eba10b34c4d1 (diff)
downloadvboot-9e53b92e50165b777111f159daa2b4e3b3c8b355.tar.gz
vboot_display: Add full_info parameter to VbExDisplayDebugInfo()factory-atlas-11907.Bfactory-atlas-11907.11.B
VbExDisplayDebugInfo() was invented for the TAB display that dumps a whole lot of possibly interesting debug data to the screen. Since some debug data is only available to the calling firmware, the convention has always been that the calling firmware is supposed to append any of its own debug data it thinks may be relevant to the output. Later, the function was reused to print small info messages that give the user a hint what went wrong when a Ctrl+U or Ctrl+L fails (unlocalized, of course, but better than nothing). The calling firmware is not aware of this new use case, so every time vboot prints a "WARNING: Ctrl+L not enabled" sort of message on the screen, depthcharge also dumps the firmware IDs and TPM state below it. This patch introduces a new parameter to the function to make the two differing use cases clear to the calling firmware. CQ-DEPEND=CL:1496903 BRANCH=None BUG=None TEST=with other patches Change-Id: I52a1e764189508130fea562ad6d53bcefb1fce64 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1497038
Diffstat (limited to 'firmware/lib/vboot_ui_common.c')
-rw-r--r--firmware/lib/vboot_ui_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/lib/vboot_ui_common.c b/firmware/lib/vboot_ui_common.c
index af9c4951..b15bf29d 100644
--- a/firmware/lib/vboot_ui_common.c
+++ b/firmware/lib/vboot_ui_common.c
@@ -35,7 +35,7 @@ void vb2_error_notify(const char *print_msg,
enum vb2_beep_type beep)
{
if (print_msg)
- VbExDisplayDebugInfo(print_msg);
+ VbExDisplayDebugInfo(print_msg, 0);
if (!log_msg)
log_msg = print_msg;
if (log_msg)
@@ -60,7 +60,7 @@ void vb2_error_no_altfw(void)
VB2_DEBUG("Legacy boot is disabled\n");
VbExDisplayDebugInfo("WARNING: Booting legacy BIOS has not been "
"enabled. Refer to the developer-mode "
- "documentation for details.\n");
+ "documentation for details.\n", 0);
vb2_error_beep(VB_BEEP_NOT_ALLOWED);
}