Skip to contentSkip to conversation

selftests: kselftest: fix missing @fmt descriptions

PATCH New Jaeyeon Lee 1 participant 1 message May 16 Kselftest

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests: kselftest: fix missing @fmt descriptions

Fix the missing @fmt descriptions in ksft_test_result() and ksft_test_result_report().

---
 tools/testing/selftests/kselftest.h | 2 ++
 1 file changed, 2 insertions(+)
tools/testing/selftests/kselftest.h +2 -0
index b50a8478d4d3..347d1b65b2b9 100644
@@ -234,6 +234,7 @@ static inline __printf(1, 2) void ksft_test_result_fail(const char *msg, ...)
  * ksft_test_result() - Report test success based on truth of condition
  *
  * @condition: if true, report test success, otherwise failure.
+ * @fmt: format string for the test description
  */
 #define ksft_test_result(condition, fmt, ...) do {	\
 	if (!!(condition))				\
@@ -349,6 +350,7 @@ void ksft_test_result_code(int exit_code, const char *test_name,
  * ksft_test_result_report() - Report test result based on a kselftest exit code
  *
  * @result: a kselftest exit code
+ * @fmt: format string for the test description
  */
 #define ksft_test_result_report(result, fmt, ...) do {		\
 	switch (result) {					\
Signature · 1 line
2.43.0