diff options
author | Doug Zongker <dougz@android.com> | 2010-02-18 01:11:44 +0100 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2010-02-18 23:22:12 +0100 |
commit | 512536a54a1a211a9f582e76cbf12850dc7d5466 (patch) | |
tree | 724012f5ea1a3053adecb512baf342490bb94d02 /updater/updater.c | |
parent | Filename check and free allocated strings (diff) | |
download | android_bootable_recovery-512536a54a1a211a9f582e76cbf12850dc7d5466.tar android_bootable_recovery-512536a54a1a211a9f582e76cbf12850dc7d5466.tar.gz android_bootable_recovery-512536a54a1a211a9f582e76cbf12850dc7d5466.tar.bz2 android_bootable_recovery-512536a54a1a211a9f582e76cbf12850dc7d5466.tar.lz android_bootable_recovery-512536a54a1a211a9f582e76cbf12850dc7d5466.tar.xz android_bootable_recovery-512536a54a1a211a9f582e76cbf12850dc7d5466.tar.zst android_bootable_recovery-512536a54a1a211a9f582e76cbf12850dc7d5466.zip |
Diffstat (limited to '')
-rw-r--r-- | updater/updater.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/updater/updater.c b/updater/updater.c index 2d16deeba..6537a94ba 100644 --- a/updater/updater.c +++ b/updater/updater.c @@ -33,6 +33,12 @@ #define SCRIPT_NAME "META-INF/com/google/android/updater-script" int main(int argc, char** argv) { + // Various things log information to stdout or stderr more or less + // at random. The log file makes more sense if buffering is + // turned off so things appear in the right order. + setbuf(stdout, NULL); + setbuf(stderr, NULL); + if (argc != 4) { fprintf(stderr, "unexpected number of arguments (%d)\n", argc); return 1; |