]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
kselftest: fix doc for ksft_test_result_report()
authorWoradorn Laodhanadhaworn <woradorn.laon@gmail.com>
Tue, 5 May 2026 18:22:13 +0000 (01:22 +0700)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 5 May 2026 18:39:43 +0000 (12:39 -0600)
Fix documentation to reference ksft_test_result_report() instead of
ksft_test_result().

Link: https://lore.kernel.org/r/20260505182213.22924-1-woradorn.laon@gmail.com
Signed-off-by: Woradorn Laodhanadhaworn <woradorn.laon@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/kselftest.h

index 6d809f08ab7b1b5e20797a341faaffa0ff772f7a..b50a8478d4d3cde04ffe4948b04b712a059a767c 100644 (file)
@@ -346,9 +346,9 @@ void ksft_test_result_code(int exit_code, const char *test_name,
 }
 
 /**
- * ksft_test_result() - Report test success based on truth of condition
+ * ksft_test_result_report() - Report test result based on a kselftest exit code
  *
- * @condition: if true, report test success, otherwise failure.
+ * @result: a kselftest exit code
  */
 #define ksft_test_result_report(result, fmt, ...) do {         \
        switch (result) {                                       \