summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de>2026-08-03 12:04:39 +0200
committerThomas Gleixner <tglx@kernel.org>2026-08-11 18:11:20 +0200
commit142a2d312e7bb8e5ad524a4f2115523cf4904732 (patch)
treea30666fe80bad78c586f2ab4d2ab59f8d4593e2e /tools
parent54200b87489b39f9437a91e2156c4c2d90412704 (diff)
selftests: timers: nanosleep: Drop output alignment
The padding of the clock name is pointless as nothing else is printed. Signed-off-by: Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20260803-auxclock-nanosleep-prep-v2-8-910cbd485390@linutronix.de
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/timers/nanosleep.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/testing/selftests/timers/nanosleep.c b/tools/testing/selftests/timers/nanosleep.c
index 7df86dfc897f..629e800135ad 100644
--- a/tools/testing/selftests/timers/nanosleep.c
+++ b/tools/testing/selftests/timers/nanosleep.c
@@ -152,7 +152,7 @@ int main(int argc, char **argv)
if (clockid == CLOCK_PROCESS_CPUTIME_ID ||
clockid == CLOCK_THREAD_CPUTIME_ID ||
clockid == CLOCK_HWSPECIFIC) {
- ksft_test_result_skip("%-31s\n", clock_name(clockid));
+ ksft_test_result_skip("%s\n", clock_name(clockid));
continue;
}
@@ -162,21 +162,21 @@ int main(int argc, char **argv)
while (length <= (NSEC_PER_SEC * 10)) {
ret = nanosleep_test(clockid, length);
if (ret == UNSUPPORTED) {
- ksft_test_result_skip("%-31s\n", clock_name(clockid));
+ ksft_test_result_skip("%s\n", clock_name(clockid));
goto next;
}
if (ret < 0) {
- ksft_test_result_fail("%-31s\n", clock_name(clockid));
+ ksft_test_result_fail("%s\n", clock_name(clockid));
ksft_exit_fail();
}
length *= 100;
}
ret = nanosleep_test_remaining(clockid);
if (ret < 0) {
- ksft_test_result_fail("%-31s\n", clock_name(clockid));
+ ksft_test_result_fail("%s\n", clock_name(clockid));
ksft_exit_fail();
}
- ksft_test_result_pass("%-31s\n", clock_name(clockid));
+ ksft_test_result_pass("%s\n", clock_name(clockid));
next:
ret = 0;
}