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

Commit f114e0f7 authored by Martijn Coenen's avatar Martijn Coenen Committed by android-build-merger
Browse files

Merge "Truncate trace output files." am: 09ab3783

am: d62093da

Change-Id: I5d4cf03c1ecc81851a71d23f13adb02838d14bdf
parents 641f2cf4 d62093da
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1239,7 +1239,7 @@ int main(int argc, char **argv)
            fflush(stdout);
            int outFd = STDOUT_FILENO;
            if (g_outputFile) {
                outFd = open(g_outputFile, O_WRONLY | O_CREAT, 0644);
                outFd = open(g_outputFile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
            }
            if (outFd == -1) {
                printf("Failed to open '%s', err=%d", g_outputFile, errno);