From 293b72d442d1e12a9ad8bff5fed89ddbfe1481f0 Mon Sep 17 00:00:00 2001 From: "Lu, Patrick" Date: Tue, 6 Feb 2018 13:54:51 -0700 Subject: jitter: flush stdout more frequently Flush printf after every output, so we can pipe output to tee or file more often. We should watch out if there is any adverse effect. Change-Id: Id19e125388d55c984546e94f1a7165b03af17748 Signed-off-by: Patrick Lu --- jitter/jitter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/jitter/jitter.c b/jitter/jitter.c index a93929e..24bc3bd 100644 --- a/jitter/jitter.c +++ b/jitter/jitter.c @@ -290,6 +290,7 @@ int main(int argc, char* argv[]) absoluteMax,tmp, (endTime-lasttime), SampleNo); + fflush(stdout); } else { -- cgit 1.2.3-korg