hwclock: flush stdout in hwclock -c

This allows using hwclock -c in automated test scripts that parse
its output line-by-line. The standard output is flushed before
each 10 second delay.

Signed-off-by: Alexey Galakhov <agalakhov@gmail.com>
This commit is contained in:
Alexey Galakhov 2015-04-16 17:26:27 +02:00 committed by Karel Zak
parent 165ae38f0d
commit ff22953890
1 changed files with 1 additions and 0 deletions

View File

@ -1525,6 +1525,7 @@ static int compare_clock (const bool utc, const bool local_opt)
printf("hw-time system-time freq-offset-ppm tick\n");
printf("%10.0f %10.6f\n", (double) time1_hw, time1_sys);
}
fflush(stdout);
sleep(10);
}