Merge "Print with newline for ui_print." am: 90deaf9ab7
am: 1313a9636d
Change-Id: I1cc5523b0ae213f5091caa6793c549e08dc148dc
This commit is contained in:
commit
14be4eb8ce
3 changed files with 1 additions and 7 deletions
|
@ -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;
|
||||
|
|
|
@ -76,7 +76,6 @@ static void uiPrint(State* state, const std::string& buffer) {
|
|||
for (auto& line : lines) {
|
||||
if (!line.empty()) {
|
||||
fprintf(ui->cmd_pipe, "ui_print %s\n", line.c_str());
|
||||
fprintf(ui->cmd_pipe, "ui_print\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -191,7 +191,6 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
fprintf(cmd_pipe, "ui_print %s\n", line.c_str());
|
||||
}
|
||||
fprintf(cmd_pipe, "ui_print\n");
|
||||
}
|
||||
|
||||
if (state.error_code != kNoError) {
|
||||
|
|
Loading…
Reference in a new issue