diff options
author | Yu-Ping Wu <yupingso@chromium.org> | 2020-11-06 11:24:22 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-19 05:06:30 +0000 |
commit | abcd6d24548480c1b3aeb5998c15b8548cea3b76 (patch) | |
tree | 2b639efb536f166de64fc5ac4385362c5e3bab0a /firmware/2lib/include/2api.h | |
parent | 9a820d73511379877b077fde452c31fede89da23 (diff) | |
download | vboot-abcd6d24548480c1b3aeb5998c15b8548cea3b76.tar.gz |
vboot/ui: Pass screen and locale_id to vb2ex_prepare_log_screen()
To support multi-line title for log screens, we need to support
different size of log box in each screen. Therefore, pass the screen and
locale information to vb2ex_prepare_log_screen() so that the number of
lines per page can be determined.
BUG=b:165187866
TEST=emerge-asurada depthcharge
BRANCH=none
Cq-Depend: chromium:2522156
Change-Id: I652d6261ed559a948e7bd578da3ec81d54374039
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2522416
Reviewed-by: Hsuan Ting Chen <roccochen@chromium.org>
Reviewed-by: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'firmware/2lib/include/2api.h')
-rw-r--r-- | firmware/2lib/include/2api.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/2lib/include/2api.h b/firmware/2lib/include/2api.h index 4c5e1dc6..9448e12a 100644 --- a/firmware/2lib/include/2api.h +++ b/firmware/2lib/include/2api.h @@ -1491,10 +1491,13 @@ const char *vb2ex_get_firmware_log(int reset); * pages in the log string is returned. If the log string ever changes, this * function should be called again before the next vb2ex_display_ui() call. * + * @param screen Screen to display the log. + * @param locale_id Id of current locale. * @param str The log string to display. * @return The number of pages after pagination. 0 if none or error. */ -uint32_t vb2ex_prepare_log_screen(const char *str); +uint32_t vb2ex_prepare_log_screen(enum vb2_screen screen, uint32_t locale_id, + const char *str); /** * Get the full storage diagnostic log. |