Commit ab52a484 authored by Paul Elder's avatar Paul Elder Committed by Shuah Khan

kselftest: add ksft_print_msg() function to output general information

Add a generic information output function: ksft_print_msg()
Signed-off-by: default avatarPaul Elder <paul.elder@pitt.edu>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
parent 151b2732
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment