mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
staging/bcm2835-codec: 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>
This commit is contained in:
committed by
popcornmix
parent
4a71934c96
commit
eeddc897c1
@@ -2836,8 +2836,10 @@ static int bcm2835_codec_get_supported_fmts(struct bcm2835_codec_dev *dev)
|
||||
|
||||
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__);
|
||||
v4l2_err(&dev->v4l2_dev,
|
||||
"%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",
|
||||
@@ -2880,8 +2882,10 @@ static int bcm2835_codec_get_supported_fmts(struct bcm2835_codec_dev *dev)
|
||||
|
||||
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__);
|
||||
v4l2_err(&dev->v4l2_dev,
|
||||
"%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 {
|
||||
ret = -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user