summaryrefslogtreecommitdiffstats
path: root/adb/commandline.c
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2009-09-22 01:18:40 -0400
committerMike Lockwood <lockwood@android.com>2010-02-25 23:04:43 -0500
commitdd6b36e334809e7a99f0bce45353cdd7e4dac4e1 (patch)
tree70335e8a9be1dcb6559402d8beee861f8c060c37 /adb/commandline.c
parenteafdd86f4d8f4ccc69f0c16550c65aa392f678d6 (diff)
downloadsystem_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/commandline.c')
-rw-r--r--adb/commandline.c4
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);
}
}