Maxime Ripard <[email protected]> writes:

> Some DRM helpers report the state of an object through a drm_printer,
> most notably to report which fields of two states differ when comparing
> them.
>
> Tests exercising such code paths need to pass a drm_printer as well, and
> would rather have its output show up in the KTAP log of the test than
> anywhere else, so that a failure comes with the report that caused it.
>
> Add drm_kunit_helper_printer() that returns a drm_printer whose messages
> are logged through kunit_log() at the LOGLEVEL_* level requested by the
> caller.
>
> Signed-off-by: Maxime Ripard <[email protected]>
> ---

Acked-by: Javier Martinez Canillas <[email protected]>

-- 
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat

Reply via email to