drm/plane_helper: Print actual/expected values on failure
authorMichał Winiarski <michal.winiarski@intel.com>
Thu, 20 Oct 2022 08:21:34 +0000 (10:21 +0200)
committerMaíra Canal <mairacanal@riseup.net>
Thu, 20 Oct 2022 11:05:53 +0000 (08:05 -0300)
commitd74c1b461f3d02fe1c3816dec7642caba2581c35
tree824550b69549f7c4c548ceb12e0fc7f40b9f082d
parent7c99616e3fe7f35fe25bf6f5797267da29b4751e
drm/plane_helper: Print actual/expected values on failure

Currently the values are printed with debug log level.
Adjust the log level and link the output with the test by using kunit_err.

Example output:
foo: dst: 20x20+10+10, expected: 10x10+0+0
foo: EXPECTATION FAILED at drivers/gpu/drm/tests/drm_plane_helper_test.c:85

Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Maíra Canal <mairacanal@riseup.net>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20221020082135.779872-1-michal.winiarski@intel.com
drivers/gpu/drm/tests/drm_plane_helper_test.c