[LTP] [PATCH 1/1] fsx-linux: Reduce log output

Andrea Cervesato andrea.cervesato@suse.com
Thu Dec 7 13:18:27 CET 2023


Hi,

more than TVERB, it would be nice to add a "verbose_flag". Something like:

tst_res(TINFO, "my message %s", my_param, verbose_flag)

And then with a -v we filter out messages which are verbose or not.
In this way we don't add T-flags and we can handle any kind of messages 
in verbose mode.

Andrea

On 12/7/23 12:22, Cyril Hrubis wrote:
> Hi!
>> IMHO output should have been only on error (test run 10000x or 100000x or even
>> 500000x, that's a lot for a regular output). Also logs get huge due logging.
> Generally tests should print a few lines by default, having too much
> output can easily flood serial console or any other slow output and slow
> down thigns considerably.
>
> Verbose output may be useful for debugging though. Maybe we need
> TVERB flag and default test library '-v' parameter that would enable
> such messages.
>



More information about the ltp mailing list