[LTP] [PATCH v1] tst_taint: Print readable error message instead of numerical code
Kushal Chand
kushalchand@zilogic.com
Thu Jan 13 05:09:48 CET 2022
Hi Petr,
I am really sorry I forgot to mention the link to issue on LTP for which I have submitted the patch.
Can you please check https://github.com/linux-test-project/ltp/issues/776 if you have not already?
I just followed what the issue points out.
If not I will follow what you have mentioned if given more references to tst_strerrno()
---- On Wed, 12 Jan 2022 20:48:50 +0530 Petr Vorel <pvorel@suse.cz> wrote ----
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
Regards,
Kushal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20220113/f766fdd6/attachment.htm>
More information about the ltp
mailing list