diff options
author | Mike Lockwood <lockwood@android.com> | 2009-09-22 01:18:40 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2010-02-25 23:04:43 -0500 |
commit | dd6b36e334809e7a99f0bce45353cdd7e4dac4e1 (patch) | |
tree | 70335e8a9be1dcb6559402d8beee861f8c060c37 /adb | |
parent | eafdd86f4d8f4ccc69f0c16550c65aa392f678d6 (diff) | |
download | system_core-dd6b36e334809e7a99f0bce45353cdd7e4dac4e1.zip system_core-dd6b36e334809e7a99f0bce45353cdd7e4dac4e1.tar.gz system_core-dd6b36e334809e7a99f0bce45353cdd7e4dac4e1.tar.bz2 |
adb: do not mix printf() with write() when writing to stdout.
Change-Id: I3598cc951778080bec9a21d646656d5aba57120a
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'adb')
-rw-r--r-- | adb/commandline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/adb/commandline.c b/adb/commandline.c index 0352cf2..cd84c3a 100644 --- a/adb/commandline.c +++ b/adb/commandline.c @@ -221,8 +221,8 @@ static void read_and_dump(int fd) 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); } } |