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:
parent
165ae38f0d
commit
ff22953890
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue