diff options
author | Tao Bao <tbao@google.com> | 2017-01-24 06:02:58 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-01-24 06:02:58 +0100 |
commit | 64768cef878f2a9dc49b15e279b6649fa31f2a7a (patch) | |
tree | 437fb921f2f3dcd347a1aca597dd991b9e6c1a67 /install.cpp | |
parent | Merge "bootctrl HAL uses "default" service name" am: cf1af460d5 am: ee3030ad4e (diff) | |
parent | Merge "Print with newline for ui_print." am: 90deaf9ab7 (diff) | |
download | android_bootable_recovery-64768cef878f2a9dc49b15e279b6649fa31f2a7a.tar android_bootable_recovery-64768cef878f2a9dc49b15e279b6649fa31f2a7a.tar.gz android_bootable_recovery-64768cef878f2a9dc49b15e279b6649fa31f2a7a.tar.bz2 android_bootable_recovery-64768cef878f2a9dc49b15e279b6649fa31f2a7a.tar.lz android_bootable_recovery-64768cef878f2a9dc49b15e279b6649fa31f2a7a.tar.xz android_bootable_recovery-64768cef878f2a9dc49b15e279b6649fa31f2a7a.tar.zst android_bootable_recovery-64768cef878f2a9dc49b15e279b6649fa31f2a7a.zip |
Diffstat (limited to 'install.cpp')
-rw-r--r-- | install.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/install.cpp b/install.cpp index 9bb1216cf..553ebae10 100644 --- a/install.cpp +++ b/install.cpp @@ -420,11 +420,7 @@ static int try_update_binary(const char* path, ZipArchiveHandle zip, bool* wipe_ LOG(ERROR) << "invalid \"set_progress\" parameters: " << line; } } else if (command == "ui_print") { - if (!args.empty()) { - ui->PrintOnScreenOnly("%s", args.c_str()); - } else { - ui->PrintOnScreenOnly("\n"); - } + ui->PrintOnScreenOnly("%s\n", args.c_str()); fflush(stdout); } else if (command == "wipe_cache") { *wipe_cache = true; |