summaryrefslogtreecommitdiffstats
path: root/screen_ui.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-09-12 03:09:49 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-09-12 03:09:49 +0200
commitb83fd518262853d42b5a73a61ec6fdfafe0f5564 (patch)
tree89321a9b2d5892ced04b3c3c387ccda6ed9c1fd6 /screen_ui.cpp
parentMerge "updater: Fix the line breaks in ui_print commands." (diff)
parentrecovery: Remove redirect_stdio() when calling ShowFile(). (diff)
downloadandroid_bootable_recovery-b83fd518262853d42b5a73a61ec6fdfafe0f5564.tar
android_bootable_recovery-b83fd518262853d42b5a73a61ec6fdfafe0f5564.tar.gz
android_bootable_recovery-b83fd518262853d42b5a73a61ec6fdfafe0f5564.tar.bz2
android_bootable_recovery-b83fd518262853d42b5a73a61ec6fdfafe0f5564.tar.lz
android_bootable_recovery-b83fd518262853d42b5a73a61ec6fdfafe0f5564.tar.xz
android_bootable_recovery-b83fd518262853d42b5a73a61ec6fdfafe0f5564.tar.zst
android_bootable_recovery-b83fd518262853d42b5a73a61ec6fdfafe0f5564.zip
Diffstat (limited to 'screen_ui.cpp')
-rw-r--r--screen_ui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp
index ddf85c19e..f2fda2fb5 100644
--- a/screen_ui.cpp
+++ b/screen_ui.cpp
@@ -581,7 +581,7 @@ void ScreenRecoveryUI::ShowFile(FILE* fp) {
bool show_prompt = false;
while (true) {
if (show_prompt) {
- Print("--(%d%% of %d bytes)--",
+ PrintOnScreenOnly("--(%d%% of %d bytes)--",
static_cast<int>(100 * (double(ftell(fp)) / double(sb.st_size))),
static_cast<int>(sb.st_size));
Redraw();