summaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2009-09-22 01:18:40 -0400
committerMike Lockwood <lockwood@android.com>2010-04-28 11:32:20 -0400
commitc519c00c367c9017eed70973022813e828448818 (patch)
tree8e4f875dd75eb79cfd763b1681dbb7a7f45a0be0 /adb
parent16f1550b51a12187799bb9d577839f2812c949d6 (diff)
downloadsystem_core-c519c00c367c9017eed70973022813e828448818.zip
system_core-c519c00c367c9017eed70973022813e828448818.tar.gz
system_core-c519c00c367c9017eed70973022813e828448818.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.c4
1 files changed, 2 insertions, 2 deletions
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 @@ 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);
}
}