Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c519c00c authored by Mike Lockwood's avatar Mike Lockwood
Browse files

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



Change-Id: I3598cc951778080bec9a21d646656d5aba57120a
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 16f1550b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
    }
}