1 From 65742d7116e89b08858fcd7d67bd521ee19ee837 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Wed, 30 Aug 2023 18:05:43 +0100
4 Subject: [PATCH] staging: bcm2835-codec: Downgrade the level for a debug
7 The debug message from bcm2835_codec_buf_prepare when the buffer
8 size is incorrect can be a little spammy if the application isn't
9 careful on how it drives it, therefore drop the priority of the
12 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
14 .../staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
17 --- a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
18 +++ b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
19 @@ -2883,7 +2883,7 @@ static int bcm2835_codec_buf_prepare(str
22 if (vb2_plane_size(vb, 0) < q_data->sizeimage) {
23 - v4l2_err(&ctx->dev->v4l2_dev, "%s data will not fit into plane (%lu < %lu)\n",
24 + v4l2_dbg(1, debug, &ctx->dev->v4l2_dev, "%s data will not fit into plane (%lu < %lu)\n",
25 __func__, vb2_plane_size(vb, 0),
26 (long)q_data->sizeimage);