commit | 597ea9a60a076db2dc81117b7f6cad07a78ee93d | [log] [tgz] |
---|---|---|
author | Mike Lockwood <lockwood@android.com> | Tue Sep 22 01:18:40 2009 -0400 |
committer | Mike Lockwood <lockwood@android.com> | Thu Feb 25 23:04:43 2010 -0500 |
tree | 65413afd76b772b12fad52a36212899ffb9b0e04 | |
parent | d49e9eb031e92f2c181f9be353215956e66ad832 [diff] [blame] |
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/commandline.c b/commandline.c index 0352cf2..cd84c3a 100644 --- a/commandline.c +++ b/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); } }