Merge "Print with newline for ui_print." am: 90deaf9ab7

am: 1313a9636d

Change-Id: I1cc5523b0ae213f5091caa6793c549e08dc148dc
This commit is contained in:
Tao Bao
2017-01-24 05:00:27 +00:00
committed by android-build-merger
3 changed files with 1 additions and 7 deletions
+1 -5
View File
@@ -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;