[LTP] [PATCH v4 3/5] lib: Prefer LTP_DEBUG over -D
Li Wang
wangli.ahau@gmail.com
Thu Apr 23 08:43:56 CEST 2026
Petr Vorel <pvorel@suse.cz> wrote:
> Environment variable has usually higher preference than getopt.
> This includes disabling debugging even on -D:
> LTP_DEBUG= ./test05 -D2 means debugging disabled.
>
> Also reduce duplicity of "Enabling debug info (level %d)" message and
> document that on -h and developers/debugging.rst.
>
> Fixes: e434de62b4 ("lib: Extend LTP_ENABLE_DEBUG to support verbosity levels")
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
Reviewed-by: Li Wang <wangli.ahau@gmail.com>
--
Regards,
Li Wang
More information about the ltp
mailing list