[igt-dev] [PATCH i-g-t 12/20] tests/sink_crc_basic: Debug print CRC values

Katarzyna Dec katarzyna.dec at intel.com
Fri Apr 13 11:22:01 UTC 2018


On Tue, Apr 10, 2018 at 07:37:24PM -0700, Dhinakaran Pandiyan wrote:
> The CRC values are useful as a reference to compare them with values
> generated from other feature (PSR) tests.
> 
> Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan at intel.com>
 Reviewed-by: Katarzyna Dec <katarzyna.dec at intel.com>
> ---
>  tests/kms_sink_crc_basic.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tests/kms_sink_crc_basic.c b/tests/kms_sink_crc_basic.c
> index 159683e2..1c31e30a 100644
> --- a/tests/kms_sink_crc_basic.c
> +++ b/tests/kms_sink_crc_basic.c
> @@ -63,11 +63,13 @@ static void assert_color(int dir, enum color color)
>  		igt_assert_lt(0, r);
>  		igt_assert_eq(0, g);
>  		igt_assert_eq(0, b);
> +		igt_debug("sink CRC for red %.4x%.4x%.4x\n", r, g, b);
>  		break;
>  	case GREEN:
>  		igt_assert_eq(0, r);
>  		igt_assert_lt(0, g);
>  		igt_assert_eq(0, b);
> +		igt_debug("sink CRC for green %.4x%.4x%.4x\n", r, g, b);
>  		break;
>  	default:
>  		igt_fail(IGT_EXIT_FAILURE);
> -- 
> 2.14.1
> 
> _______________________________________________
> 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