projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
151b273
)
kselftest: add ksft_print_msg() function to output general information
author
Paul Elder
<paul.elder@pitt.edu>
Wed, 28 Jun 2017 14:40:21 +0000
(23:40 +0900)
committer
Shuah Khan
<shuahkh@osg.samsung.com>
Fri, 30 Jun 2017 22:15:04 +0000
(16:15 -0600)
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>
tools/testing/selftests/kselftest.h
patch
|
blob
|
blame
|
history
diff --git
a/tools/testing/selftests/kselftest.h
b/tools/testing/selftests/kselftest.h
index a00844e4c915b5029cf9da19ef8da3b212dcc113..08e90c2cc5cb70be2b2fb1d2b26fc80999e04aef 100644
(file)
--- 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;