mirror of https://gitee.com/openkylin/linux.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>
This commit is contained in:
parent
151b273211
commit
ab52a48445
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue