[LTP] [PATCH] safe_mmap: Avoid using TDEBUG before IPC is initialized
Cyril Hrubis
chrubis@suse.cz
Mon Jun 16 14:29:43 CEST 2025
Hi!
> Notes:
> I admit that this removal may result in the loss of early debug
> output from the LTP library. However, after reviewing the codebase,
> it appears that this was the only place using TDEBUG during early
> initialization, so removing it simplifies the behavior without
> significant loss of functionality.
>
> But, if someone argues that we need this, I guess we can add a
> macro tst_early_debug(fmt, ...) to replace the tst_res_(TDEBUG, ...).
Actually I was thinking of adding TDEBUG messages into more
SAFE_MACROS() in order to make test debugging easier.
Maybe we can just skip the TDEBUG messages for the test library process
I do not think that we are interested SAFE_MACROS() being called from
there.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list