Skip to content

Commit 5837bdb

Browse files
6by9popcornmix
authored andcommitted
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 <[email protected]>
1 parent abafe27 commit 5837bdb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/staging/vc04_services/bcm2835-isp/bcm2835-v4l2-isp.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,8 +1169,9 @@ static int bcm2835_isp_get_supported_fmts(struct bcm2835_isp_node *node)
11691169
if (ret) {
11701170
if (ret == MMAL_MSG_STATUS_ENOSPC) {
11711171
v4l2_err(&dev->v4l2_dev,
1172-
"%s: port has more encoding than we provided space for. Some are dropped.\n",
1173-
__func__);
1172+
"%s: port has more encodings than we provided space for. Some are dropped (%u vs %u).\n",
1173+
__func__, param_size / sizeof(u32),
1174+
MAX_SUPPORTED_ENCODINGS);
11741175
num_encodings = MAX_SUPPORTED_ENCODINGS;
11751176
} else {
11761177
v4l2_err(&dev->v4l2_dev, "%s: get_param ret %u.\n",

0 commit comments

Comments
 (0)