selftests/timers: Add missing fflush(stdout) calls
When running under a pipe, some timer tests would not report output in real-time because stdout flushes were missing after printf()s that lacked a newline. This adds them to restore real-time status output that humans can enjoy. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
@@ -55,6 +55,7 @@ int main(int argc, char **argv)
|
||||
printf("tai offset started at %i\n", ret);
|
||||
|
||||
printf("Checking tai offsets can be properly set: ");
|
||||
fflush(stdout);
|
||||
for (i = 1; i <= 60; i++) {
|
||||
ret = set_tai(i);
|
||||
ret = get_tai();
|
||||
|
Reference in New Issue
Block a user