[LTP] [PATCH v1] tst_taint: Print readable error message instead of numerical code

Petr Vorel pvorel@suse.cz
Wed Jan 12 16:18:50 CET 2022


Hi Kushal,

>  	if ((taint & taint_mask) != 0)
> -		tst_brk(TBROK, "Kernel is already tainted: %u", taint);
> +		tst_brk(TBROK, "Kernel is already tainted: TAINT_D (OOPS)");

Kernel can be tainted before testing with different flags than D.

If you don't like the number, how about create function to map taint flag to
char? i.e. similarly to tst_strerrno()?

Kind regards,
Petr


More information about the ltp mailing list