samples: drivers: video: capture: logging improvements

Remove trailing spaces at the end of log string.
Move arguments on the next line for readability.
Align arguments to first line.

Signed-off-by: Josuah Demangeon <me@josuah.net>
This commit is contained in:
Josuah Demangeon 2025-05-18 15:26:33 +00:00 committed by Benjamin Cabé
commit b95d7e2a94

View file

@ -181,7 +181,7 @@ int main(void)
fie.format = &fmt;
while (video_enum_frmival(video_dev, &fie) == 0) {
if (fie.type == VIDEO_FRMIVAL_TYPE_DISCRETE) {
LOG_INF(" %u/%u ", fie.discrete.numerator, fie.discrete.denominator);
LOG_INF(" %u/%u", fie.discrete.numerator, fie.discrete.denominator);
} else {
LOG_INF(" [min = %u/%u; max = %u/%u; step = %u/%u]",
fie.stepwise.min.numerator, fie.stepwise.min.denominator,
@ -268,8 +268,8 @@ int main(void)
return 0;
}
LOG_DBG("Got frame %u! size: %u; timestamp %u ms", frame++, vbuf->bytesused,
vbuf->timestamp);
LOG_DBG("Got frame %u! size: %u; timestamp %u ms",
frame++, vbuf->bytesused, vbuf->timestamp);
#ifdef CONFIG_TEST
if (is_colorbar_ok(vbuf->buffer, fmt)) {