summaryrefslogtreecommitdiffstats
path: root/install.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-01-24 05:58:27 +0100
committerandroid-build-merger <android-build-merger@google.com>2017-01-24 05:58:27 +0100
commit1313a9636db0231ec33b346d7a8ee2157eb35242 (patch)
tree586a70f7db88c9d24e6a23ffe1dce574083ff3f5 /install.cpp
parentMerge "bootctrl HAL uses "default" service name" (diff)
parentMerge "Print with newline for ui_print." (diff)
downloadandroid_bootable_recovery-1313a9636db0231ec33b346d7a8ee2157eb35242.tar
android_bootable_recovery-1313a9636db0231ec33b346d7a8ee2157eb35242.tar.gz
android_bootable_recovery-1313a9636db0231ec33b346d7a8ee2157eb35242.tar.bz2
android_bootable_recovery-1313a9636db0231ec33b346d7a8ee2157eb35242.tar.lz
android_bootable_recovery-1313a9636db0231ec33b346d7a8ee2157eb35242.tar.xz
android_bootable_recovery-1313a9636db0231ec33b346d7a8ee2157eb35242.tar.zst
android_bootable_recovery-1313a9636db0231ec33b346d7a8ee2157eb35242.zip
Diffstat (limited to 'install.cpp')
-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;