aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/timers/inconsistency-check.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/timers/inconsistency-check.c')
-rw-r--r--tools/testing/selftests/timers/inconsistency-check.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/timers/inconsistency-check.c b/tools/testing/selftests/timers/inconsistency-check.c
index caf1bc9257c4..74c60e8759a0 100644
--- a/tools/testing/selftests/timers/inconsistency-check.c
+++ b/tools/testing/selftests/timers/inconsistency-check.c
@@ -118,7 +118,7 @@ int consistency_test(int clock_type, unsigned long seconds)
118 start_str = ctime(&t); 118 start_str = ctime(&t);
119 119
120 while (seconds == -1 || now - then < seconds) { 120 while (seconds == -1 || now - then < seconds) {
121 inconsistent = 0; 121 inconsistent = -1;
122 122
123 /* Fill list */ 123 /* Fill list */
124 for (i = 0; i < CALLS_PER_LOOP; i++) 124 for (i = 0; i < CALLS_PER_LOOP; i++)
@@ -130,7 +130,7 @@ int consistency_test(int clock_type, unsigned long seconds)
130 inconsistent = i; 130 inconsistent = i;
131 131
132 /* display inconsistency */ 132 /* display inconsistency */
133 if (inconsistent) { 133 if (inconsistent >= 0) {
134 unsigned long long delta; 134 unsigned long long delta;
135 135
136 printf("\%s\n", start_str); 136 printf("\%s\n", start_str);