diff options
author | Tao Bao <tbao@google.com> | 2015-06-03 18:15:49 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-06-03 18:15:50 +0200 |
commit | a69e608a521f7818cc0f17ba86710bd5b18137f2 (patch) | |
tree | a94ee0f95bb444b33f5e18e6e393f053e4e6f5b3 /updater | |
parent | Merge "Really don't use TEMP_FAILURE_RETRY with close in recovery." (diff) | |
parent | Log update outputs in order (diff) | |
download | android_bootable_recovery-a69e608a521f7818cc0f17ba86710bd5b18137f2.tar android_bootable_recovery-a69e608a521f7818cc0f17ba86710bd5b18137f2.tar.gz android_bootable_recovery-a69e608a521f7818cc0f17ba86710bd5b18137f2.tar.bz2 android_bootable_recovery-a69e608a521f7818cc0f17ba86710bd5b18137f2.tar.lz android_bootable_recovery-a69e608a521f7818cc0f17ba86710bd5b18137f2.tar.xz android_bootable_recovery-a69e608a521f7818cc0f17ba86710bd5b18137f2.tar.zst android_bootable_recovery-a69e608a521f7818cc0f17ba86710bd5b18137f2.zip |
Diffstat (limited to '')
-rw-r--r-- | updater/install.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/updater/install.c b/updater/install.c index 01a5dd24b..da6b57782 100644 --- a/updater/install.c +++ b/updater/install.c @@ -61,6 +61,12 @@ void uiPrint(State* state, char* buffer) { line = strtok(NULL, "\n"); } fprintf(ui->cmd_pipe, "ui_print\n"); + + // The recovery will only print the contents to screen for pipe command + // ui_print. We need to dump the contents to stderr (which has been + // redirected to the log file) directly. + fprintf(stderr, buffer); + fprintf(stderr, "\n"); } __attribute__((__format__(printf, 2, 3))) __nonnull((2)) |