Merge "adb: do not mix printf() with write() when writing to stdout."
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 @@
             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);
     }
 }