1 From 657f3650ee955677d747fb3514280ef413394871 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Thu, 7 Jan 2021 11:43:22 +0000
4 Subject: [PATCH] staging/bcm2835-isp: Log the number of excess
7 When logging that the firmware has provided more supported formats
8 than we had allocated storage for, log the number allocated and
11 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
13 drivers/staging/vc04_services/bcm2835-isp/bcm2835-v4l2-isp.c | 5 +++--
14 1 file changed, 3 insertions(+), 2 deletions(-)
16 --- a/drivers/staging/vc04_services/bcm2835-isp/bcm2835-v4l2-isp.c
17 +++ b/drivers/staging/vc04_services/bcm2835-isp/bcm2835-v4l2-isp.c
18 @@ -1169,8 +1169,9 @@ static int bcm2835_isp_get_supported_fmt
20 if (ret == MMAL_MSG_STATUS_ENOSPC) {
21 v4l2_err(&dev->v4l2_dev,
22 - "%s: port has more encoding than we provided space for. Some are dropped.\n",
24 + "%s: port has more encodings than we provided space for. Some are dropped (%u vs %u).\n",
25 + __func__, param_size / sizeof(u32),
26 + MAX_SUPPORTED_ENCODINGS);
27 num_encodings = MAX_SUPPORTED_ENCODINGS;
29 v4l2_err(&dev->v4l2_dev, "%s: get_param ret %u.\n",