Skip to content

Commit 622b2fb

Browse files
author
Shuah Khan
committed
selftests: timers: freq-step: fix compile error
Fix compile error due to ksft_exit_skip() update to take var_args. freq-step.c: In function ‘init_test’: freq-step.c:234:3: error: too few arguments to function ‘ksft_exit_skip’ ksft_exit_skip(); ^~~~~~~~~~~~~~ In file included from freq-step.c:26:0: ../kselftest.h:167:19: note: declared here static inline int ksft_exit_skip(const char *msg, ...) ^~~~~~~~~~~~~~ <builtin>: recipe for target 'freq-step' failed Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
1 parent 7ba190b commit 622b2fb

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎tools/testing/selftests/timers/freq-step.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,9 @@ static void init_test(void)
229229
printf("CLOCK_MONOTONIC_RAW+CLOCK_MONOTONIC precision: %.0f ns\t\t",
230230
1e9 * precision);
231231

232-
if (precision > MAX_PRECISION) {
233-
printf("[SKIP]\n");
234-
ksft_exit_skip();
235-
}
232+
if (precision > MAX_PRECISION)
233+
ksft_exit_skip("precision: %.0f ns > MAX_PRECISION: %.0f ns\n",
234+
1e9 * precision, 1e9 * MAX_PRECISION);
236235

237236
printf("[OK]\n");
238237
srand(ts.tv_sec ^ ts.tv_nsec);

0 commit comments

Comments
 (0)