summaryrefslogtreecommitdiffstats
path: root/install.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-01-21 22:03:25 +0100
committerTao Bao <tbao@google.com>2017-01-22 05:43:45 +0100
commitf013642477dbe0a5ed8d440571e9c8676ed42b2d (patch)
tree536ba1489bcc83a8594ff7efc69ec3457de70664 /install.cpp
parentMerge "imgpatch: Compile with ZLIB_CONST defined." (diff)
downloadandroid_bootable_recovery-f013642477dbe0a5ed8d440571e9c8676ed42b2d.tar
android_bootable_recovery-f013642477dbe0a5ed8d440571e9c8676ed42b2d.tar.gz
android_bootable_recovery-f013642477dbe0a5ed8d440571e9c8676ed42b2d.tar.bz2
android_bootable_recovery-f013642477dbe0a5ed8d440571e9c8676ed42b2d.tar.lz
android_bootable_recovery-f013642477dbe0a5ed8d440571e9c8676ed42b2d.tar.xz
android_bootable_recovery-f013642477dbe0a5ed8d440571e9c8676ed42b2d.tar.zst
android_bootable_recovery-f013642477dbe0a5ed8d440571e9c8676ed42b2d.zip
Diffstat (limited to '')
-rw-r--r--install.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/install.cpp b/install.cpp
index d3ab2136d..959a74222 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;