Merge "adb: do not mix printf() with write() when writing to stdout."

This commit is contained in:
Mike Lockwood 2010-02-27 06:16:41 -08:00 committed by Android (Google) Code Review
commit bfb0477f1d

View file

@ -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);
}
}