[LTP] [PATCH v4 2/2] syslog11: save and restore console log level

Cyril Hrubis chrubis@suse.cz
Tue Jul 19 13:45:15 CEST 2022


Hi!
> Signed-off-by: Lingling Li <lilingling@loongson.cn>
> Signed-off-by: Hongchen Zhang <zhanghongchen@loongson.cn>
> ---
>  testcases/kernel/syscalls/syslog/syslog11.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/testcases/kernel/syscalls/syslog/syslog11.c b/testcases/kernel/syscalls/syslog/syslog11.c
> index 8a19a2a..e60bd2b 100644
> --- a/testcases/kernel/syscalls/syslog/syslog11.c
> +++ b/testcases/kernel/syscalls/syslog/syslog11.c
> @@ -57,6 +57,10 @@ static void run(unsigned int n)
>  
>  static struct tst_test test = {
>  	.test = run,
> +	.save_restore = (const struct tst_path_val[]) {
> +		{"!/proc/sys/kernel/printk", NULL},
> +		{NULL, NULL}

I've changed this {NULL, NULL} to just {} in order to fix warnings
reported by 'make check-syslog11' and pushed, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list