From: Paul Elder <paul.elder@pitt.edu>
Date: Wed, 28 Jun 2017 14:40:21 +0000 (+0900)
Subject: kselftest: add ksft_print_msg() function to output general information
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ab52a484455007b3c9c11e18f6d0eed6d8f2de4e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git

kselftest: add ksft_print_msg() function to output general information

Add a generic information output function: ksft_print_msg()

Signed-off-by: Paul Elder <paul.elder@pitt.edu>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
---

diff --git a/tools/testing/selftests/kselftest.h b/tools/testing/selftests/kselftest.h
index a00844e4c915..08e90c2cc5cb 100644
--- a/tools/testing/selftests/kselftest.h
+++ b/tools/testing/selftests/kselftest.h
@@ -55,6 +55,16 @@ static inline void ksft_print_cnts(void)
 	printf("1..%d\n", ksft_test_num());
 }
 
+static inline void ksft_print_msg(const char *msg, ...)
+{
+	va_list args;
+
+	va_start(args, msg);
+	printf("# ");
+	vprintf(msg, args);
+	va_end(args);
+}
+
 static inline void ksft_test_result_pass(const char *msg, ...)
 {
 	va_list args;