summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-05-20 02:02:16 +0200
committerTao Bao <tbao@google.com>2015-06-03 07:15:40 +0200
commitb6918c7c433054ac4352d5f7746f7c2bf2971083 (patch)
tree4236756d31f2f9dc4cb4736d08bc2a41f4404fe5 /updater
parentMerge "Stop using libstdc++." (diff)
downloadandroid_bootable_recovery-b6918c7c433054ac4352d5f7746f7c2bf2971083.tar
android_bootable_recovery-b6918c7c433054ac4352d5f7746f7c2bf2971083.tar.gz
android_bootable_recovery-b6918c7c433054ac4352d5f7746f7c2bf2971083.tar.bz2
android_bootable_recovery-b6918c7c433054ac4352d5f7746f7c2bf2971083.tar.lz
android_bootable_recovery-b6918c7c433054ac4352d5f7746f7c2bf2971083.tar.xz
android_bootable_recovery-b6918c7c433054ac4352d5f7746f7c2bf2971083.tar.zst
android_bootable_recovery-b6918c7c433054ac4352d5f7746f7c2bf2971083.zip
Diffstat (limited to 'updater')
-rw-r--r--updater/install.c6
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))