commit | c519c00c367c9017eed70973022813e828448818 | [log] [tgz] |
---|---|---|
author | Mike Lockwood <lockwood@android.com> | Tue Sep 22 01:18:40 2009 -0400 |
committer | Mike Lockwood <lockwood@android.com> | Wed Apr 28 11:32:20 2010 -0400 |
tree | 8e4f875dd75eb79cfd763b1681dbb7a7f45a0be0 | |
parent | 16f1550b51a12187799bb9d577839f2812c949d6 [diff] |
adb: do not mix printf() with write() when writing to stdout. Change-Id: I3598cc951778080bec9a21d646656d5aba57120a Signed-off-by: Mike Lockwood <lockwood@android.com>
diff --git a/adb/commandline.c b/adb/commandline.c index 3ee54c7..2201d20 100644 --- a/adb/commandline.c +++ b/adb/commandline.c
@@ -221,8 +221,8 @@ if(errno == EINTR) continue; break; } - /* we want to output to stdout, so no adb_write here !! */ - unix_write(1, buf, len); + fwrite(buf, 1, len, stdout); + fflush(stdout); } }