[igt-dev] [PATCH i-g-t 1/2] lib: Quieten device filtering

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Mon Nov 16 06:26:27 UTC 2020


On Fri, Nov 13, 2020 at 01:39:50PM +0000, Chris Wilson wrote:
> We don't need to print out the filter the umpteen thousand times we try
> and open the same device; it floods the test output with noise.
> 
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> ---
>  lib/drmtest.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/lib/drmtest.c b/lib/drmtest.c
> index 49e294bde..3a8bd8591 100644
> --- a/lib/drmtest.c
> +++ b/lib/drmtest.c
> @@ -264,7 +264,7 @@ static int __search_and_open(const char *base, int offset, unsigned int chipset,
>  
>  	forced = forced_driver();
>  	if (forced)
> -		igt_info("Force option used: Using driver %s\n", forced);
> +		igt_debug("Force option used: Using driver %s\n", forced);
>  
>  	for (int i = 0; i < 16; i++) {
>  		char name[80];
> @@ -342,10 +342,10 @@ static bool __get_card_for_nth_filter(int idx, struct igt_device_card *card)
>  
>  	if (igt_device_filter_count() > idx) {
>  		filter = igt_device_filter_get(idx);
> -		igt_info("Looking for devices to open using filter %d: %s\n", idx, filter);
> +		igt_debug("Looking for devices to open using filter %d: %s\n", idx, filter);
>  
>  		if (igt_device_card_match(filter, card)) {
> -			igt_info("Filter matched %s | %s\n", card->card, card->render);
> +			igt_debug("Filter matched %s | %s\n", card->card, card->render);

Ok, remove that flood.

Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>

--
Zbigniew

>  			return true;
>  		}
>  
> -- 
> 2.29.2
> 
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev


More information about the igt-dev mailing list