diff options
author | Hsuan Ting Chen <roccochen@chromium.org> | 2020-09-15 15:30:00 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-17 05:09:39 +0000 |
commit | 4e5ce4293a724bce9e1fa36c5e305bdbc85946bd (patch) | |
tree | 38b606e00753d0c1d6e63ce1cfabb405579fb2da /firmware/2lib/include/2api.h | |
parent | 3fbb2d16c42b70a1fdf57dc693e10ca11c998d10 (diff) | |
download | vboot-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/include/2api.h')
-rw-r--r-- | firmware/2lib/include/2api.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/2lib/include/2api.h b/firmware/2lib/include/2api.h index dc661675..9f4dbcb9 100644 --- a/firmware/2lib/include/2api.h +++ b/firmware/2lib/include/2api.h @@ -1440,12 +1440,14 @@ char *vb2api_get_debug_info(struct vb2_context *ctx); * * Return a pointer to the full firmware log string which is guaranteed to be * null-terminated. The function implementation should snapshot the full - * firmware log when it is called the first time. Subsequent calls should - * return the same pointer. + * firmware log when it is called. If `reset` is not zero, it will reset the + * firmware log snapshot. * + * @param reset Discard the current firmware log snapshot and + * reacquire a new one. * @return The pointer to the full firmware log string. NULL on error. */ -const char *vb2ex_get_firmware_log(void); +const char *vb2ex_get_firmware_log(int reset); /** * Specify the string to be used for an upcoming log screen display. |