summaryrefslogtreecommitdiff
path: root/firmware/2lib/2ui_screens.c
diff options
context:
space:
mode:
authorHsuan Ting Chen <roccochen@chromium.org>2020-09-15 15:30:00 +0800
committerCommit Bot <commit-bot@chromium.org>2020-09-17 05:09:39 +0000
commit4e5ce4293a724bce9e1fa36c5e305bdbc85946bd (patch)
tree38b606e00753d0c1d6e63ce1cfabb405579fb2da /firmware/2lib/2ui_screens.c
parent3fbb2d16c42b70a1fdf57dc693e10ca11c998d10 (diff)
downloadvboot-4e5ce4293a724bce9e1fa36c5e305bdbc85946bd.tar.gz
vboot/ui: Force to reacquire log on initializationstabilize-13482.B
Force to reacquire a newer firmware log snapshot every time when the user enters the firmware log screen. Re-entering (e.g. back from language selection or debug info tab) will still show the cached firmware log string. BUG=b:146399181, b:168442372 TEST=make clean && make runtests TEST=Build locally, navigate to the firmware log screen, go back, and enter the firmware log screen again. BRANCH=none Cq-Depend: chromium:2409742 Change-Id: I8c3eea23446c58603ce698a86f1aca4b264ebb0e Signed-off-by: Hsuan Ting Chen <roccochen@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2411761 Commit-Queue: Yu-Ping Wu <yupingso@chromium.org>
Diffstat (limited to 'firmware/2lib/2ui_screens.c')
-rw-r--r--firmware/2lib/2ui_screens.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/2lib/2ui_screens.c b/firmware/2lib/2ui_screens.c
index 6cdae95a..3e7ead2a 100644
--- a/firmware/2lib/2ui_screens.c
+++ b/firmware/2lib/2ui_screens.c
@@ -314,7 +314,7 @@ static const struct vb2_screen_info debug_info_screen = {
static vb2_error_t firmware_log_init(struct vb2_ui_context *ui)
{
- const char *log_string = vb2ex_get_firmware_log();
+ const char *log_string = vb2ex_get_firmware_log(1);
if (!log_string) {
VB2_DEBUG("ERROR: Failed to retrieve firmware log\n");
ui->error_code = VB2_UI_ERROR_FIRMWARE_LOG;
@@ -334,7 +334,7 @@ static vb2_error_t firmware_log_init(struct vb2_ui_context *ui)
static vb2_error_t firmware_log_reinit(struct vb2_ui_context *ui)
{
- const char *log_string = vb2ex_get_firmware_log();
+ const char *log_string = vb2ex_get_firmware_log(0);
if (!log_string) {
VB2_DEBUG("ERROR: Failed to retrieve firmware log\n");
ui->error_code = VB2_UI_ERROR_FIRMWARE_LOG;