![Álvaro Fernández Rojas](/assets/img/avatar_default.png)
Build system: x86_64 Build-tested: bcm2708, bcm2709, bcm2710, bcm2711 Run-tested: bcm2708/RPiB+, bcm2709/RPi3B, bcm2710/RPi3B, bcm2711/RPi4B Signed-off-by: Marty Jones <mj8263788@gmail.com> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
30 lines
1.2 KiB
Diff
30 lines
1.2 KiB
Diff
From 657f3650ee955677d747fb3514280ef413394871 Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Thu, 7 Jan 2021 11:43:22 +0000
|
|
Subject: [PATCH] staging/bcm2835-isp: Log the number of excess
|
|
supported formats
|
|
|
|
When logging that the firmware has provided more supported formats
|
|
than we had allocated storage for, log the number allocated and
|
|
returned.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
drivers/staging/vc04_services/bcm2835-isp/bcm2835-v4l2-isp.c | 5 +++--
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/staging/vc04_services/bcm2835-isp/bcm2835-v4l2-isp.c
|
|
+++ b/drivers/staging/vc04_services/bcm2835-isp/bcm2835-v4l2-isp.c
|
|
@@ -1169,8 +1169,9 @@ static int bcm2835_isp_get_supported_fmt
|
|
if (ret) {
|
|
if (ret == MMAL_MSG_STATUS_ENOSPC) {
|
|
v4l2_err(&dev->v4l2_dev,
|
|
- "%s: port has more encoding than we provided space for. Some are dropped.\n",
|
|
- __func__);
|
|
+ "%s: port has more encodings than we provided space for. Some are dropped (%u vs %u).\n",
|
|
+ __func__, param_size / sizeof(u32),
|
|
+ MAX_SUPPORTED_ENCODINGS);
|
|
num_encodings = MAX_SUPPORTED_ENCODINGS;
|
|
} else {
|
|
v4l2_err(&dev->v4l2_dev, "%s: get_param ret %u.\n",
|