media: rkisp1: resizer: Improve debug message when configuring resizer
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 25 Sep 2023 00:20:08 +0000 (03:20 +0300)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 12 Oct 2023 07:46:38 +0000 (09:46 +0200)
commite09b03627643e1f40bfaacf29be0de7df1c8c05d
treeb8e5c415cf6fa0bb233b9f3f6ca5adecdf3ba5e3
parent1126d89f8f54a13e7c5cbee24c414603ee794f10
media: rkisp1: resizer: Improve debug message when configuring resizer

The debug messages that show the resizer configuration are only printed
if the driver enables the resizer. This prevents checking the resizer
configuration when the driver believes it should be disabled. Fix it by
moving the dev_dbg() statements earlier.

Also, combine the two debug prints into a single one to gather all the
information in one place, which makes reading the log easier.

While at it, use %u instead of %d to print unsigned values.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c